.page-home {
  --home-hero-bg: var(--clr-bg-dark);
  --home-hero-text: var(--clr-bg-light);
  --home-card-radius: var(--radius-md);
  --home-tutorial-radius: var(--radius-sm);
  --home-timeline-line: var(--clr-border-grid);
  --home-timeline-dot: var(--clr-primary-orange);
  --home-section-gap: var(--space-2xl);
}
.page-home .home-hero {
  background: var(--home-hero-bg);
  color: var(--home-hero-text);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-lg);
  padding: var(--space-lg) var(--space-md);
  position: relative;
  overflow: hidden;
  min-height: 60vh;
}
.page-home .hero-bg {
  flex: 0 0 100%;
  max-width: 100%;
  position: relative;
  z-index: 1;
}
.page-home .hero-bg .hero-img {
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-lg);
  display: block;
}
.page-home .hero-text {
  flex: 0 0 100%;
  max-width: 100%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}
.page-home .hero-title {
  font-family: var(--font-heading);
  font-weight: var(--heading-weight);
  font-size: var(--heading-size-large);
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.02em;
}
.page-home .hero-desc {
  font-size: calc(var(--body-size) * 1.2);
  color: var(--clr-accent-highlight);
  margin: 0;
}
.page-home .hero-search {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
}
.page-home .hero-search .search-wrap {
  position: relative;
  flex: 1 1 200px;
  min-width: 180px;
}
.page-home .hero-search .search-input {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  padding-left: 2.2rem;
  border: 1px solid var(--clr-border-grid);
  border-radius: var(--radius-sm);
  background: var(--clr-bg-light);
  color: var(--clr-text-primary);
  font-family: var(--font-body);
  font-size: var(--body-size);
  outline: none;
  transition: border-color var(--transition-fast);
}
.page-home .hero-search .search-input:focus {
  border-color: var(--clr-primary-orange);
}
.page-home .hero-search .search-icon {
  position: absolute;
  left: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem;
  color: var(--clr-text-secondary);
  pointer-events: none;
}
.page-home .home-hero .breadcrumb {
  margin-top: var(--space-sm);
  font-size: 0.85rem;
  color: var(--clr-accent-highlight);
}
.page-home .home-hero .breadcrumb .breadcrumb-item {
  opacity: 0.85;
}
.page-home .section-label-group {
  padding: var(--section-gap, var(--home-section-gap)) var(--space-md);
}
.page-home .section-label {
  display: block;
  font-family: var(--font-number);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--clr-primary-red);
  margin-bottom: var(--space-xs);
  text-transform: uppercase;
}
.page-home .section-heading {
  font-family: var(--font-heading);
  font-weight: var(--heading-weight);
  font-size: var(--heading-size-small);
  margin: 0 0 var(--space-lg);
  color: var(--clr-text-primary);
}
.page-home .content-container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}
.page-home .league-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
}
.page-home .league-card {
  border-radius: var(--home-card-radius);
  overflow: hidden;
  background: var(--clr-bg-light);
  display: flex;
  flex-direction: column;
  position: relative;
  cursor: pointer;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
  border: 1px solid var(--clr-border-grid);
}
.page-home .league-card:hover {
  box-shadow: 0 4px 12px rgba(29, 53, 87, 0.15);
  transform: translateY(-2px);
}
.page-home .card-img-wrap {
  width: 100%;
  height: 180px;
  overflow: hidden;
  position: relative;
}
.page-home .card-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.page-home .card-body {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  position: relative;
  z-index: 2;
}
.page-home .card-index {
  font-family: var(--font-number);
  font-size: 1.8rem;
  font-weight: var(--heading-weight);
  color: var(--clr-primary-red);
  line-height: 1;
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  opacity: 0.6;
  pointer-events: none;
}
.page-home .card-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0;
  color: var(--clr-text-primary);
}
.page-home .card-round {
  font-family: var(--font-number);
  font-size: 0.85rem;
  color: var(--clr-secondary-blue-gray);
}
.page-home .card-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base);
  font-size: 0.9rem;
  color: var(--clr-text-secondary);
}
.page-home .league-card[data-expand="true"] .card-detail {
  max-height: 100px;
}
.page-home .home-tutorials {
  background: var(--clr-bg-light);
  border-top: 1px solid var(--clr-border-grid);
  border-bottom: 1px solid var(--clr-border-grid);
}
.page-home .tutorial-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}
.page-home .tutorial-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  text-decoration: none;
  background: var(--clr-bg-dark);
  border-radius: var(--home-tutorial-radius);
  padding: var(--space-sm);
  transition: background var(--transition-fast);
}
.page-home .tutorial-card:hover {
  background: var(--clr-primary-red);
}
.page-home .tut-img-wrap {
  flex: 0 0 80px;
  width: 80px;
  height: 60px;
  overflow: hidden;
  border-radius: var(--radius-sm);
}
.page-home .tut-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.page-home .tut-body {
  flex: 1;
}
.page-home .tut-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  margin: 0;
  color: var(--clr-bg-light);
}
.page-home .tut-desc {
  font-size: 0.8rem;
  color: var(--clr-accent-highlight);
  margin: 0.2rem 0 0;
}
.page-home .home-timeline {
  background: var(--clr-bg-dark);
  color: var(--clr-bg-light);
}
.page-home .home-timeline .section-heading {
  color: var(--clr-bg-light);
}
.page-home .timeline-entries {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  position: relative;
  padding-left: var(--space-lg);
}
.page-home .timeline-entries::before {
  content: '';
  position: absolute;
  left: 0.6rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--home-timeline-line);
}
.page-home .timeline-item {
  position: relative;
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
  padding: var(--space-sm) 0;
  cursor: pointer;
  transition: background var(--transition-fast);
  border-radius: var(--radius-sm);
}
.page-home .timeline-item:hover {
  background: rgba(241, 250, 238, 0.05);
}
.page-home .timeline-item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-lg) + 0.2rem);
  top: var(--space-sm);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--home-timeline-dot);
  border: 2px solid var(--clr-bg-dark);
  z-index: 1;
}
.page-home .tl-img-wrap {
  flex: 0 0 100px;
  width: 100px;
  height: 60px;
  overflow: hidden;
  border-radius: var(--radius-sm);
}
.page-home .tl-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.page-home .tl-content {
  flex: 1;
}
.page-home .tl-round {
  font-family: var(--font-number);
  font-size: 0.75rem;
  color: var(--clr-accent-highlight);
  display: block;
}
.page-home .tl-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  margin: 0.2rem 0;
  color: var(--clr-bg-light);
}
.page-home .tl-desc {
  font-size: 0.85rem;
  color: var(--clr-secondary-blue-gray);
  margin: 0;
}
.page-home .tl-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-base);
  font-size: 0.85rem;
  color: var(--clr-accent-highlight);
}
.page-home .timeline-item[data-expand="true"] .tl-detail {
  max-height: 80px;
  margin-top: var(--space-xs);
}
.page-home .timeline-more {
  margin-top: var(--space-lg);
  text-align: center;
}
@media (min-width: 600px) {
  .page-home .home-hero {
    flex-wrap: nowrap;
    padding: var(--space-xl) var(--space-lg);
  }
  .page-home .hero-bg {
    flex: 0 0 45%;
    max-width: 45%;
  }
  .page-home .hero-text {
    flex: 0 0 50%;
    max-width: 50%;
  }
  .page-home .league-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-home .tutorial-row {
    grid-template-columns: repeat(3, 1fr);
  }
  .page-home .tutorial-card {
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-md);
  }
  .page-home .tut-img-wrap {
    flex: 0 0 auto;
    width: 100%;
    height: 150px;
  }
  .page-home .tl-img-wrap {
    flex: 0 0 140px;
    width: 140px;
    height: 80px;
  }
}
@media (min-width: 900px) {
  .page-home .league-cards {
    grid-template-columns: repeat(3, 1fr);
  }
  .page-home .hero-title {
    font-size: calc(var(--heading-size-large) * 1.15);
  }
  .page-home .hero-bg {
    flex: 0 0 50%;
    max-width: 50%;
  }
  .page-home .hero-text {
    flex: 0 0 45%;
    max-width: 45%;
  }
}

.page-home {
  --section-gap: var(--home-section-gap);
}
