/* Layout remix: keep the existing navbar untouched. */
body > .hero-section {
  padding-top: 74px;
  padding-bottom: 58px;
}

body > .hero-section .row.align-items-center {
  align-items: stretch !important;
}

body > .hero-section .content-img {
  min-height: 340px;
}

.page-hero {
  padding-top: 4.2rem !important;
  padding-bottom: 3.2rem !important;
}

.page-hero .container.text-center {
  text-align: left !important;
}

.page-hero .container.text-center .mx-auto,
.page-hero .container.text-center .title-line-center {
  margin-left: 0 !important;
  margin-right: auto !important;
}

body > section.py-5:not(.image-showcase) {
  overflow: hidden;
}

body > section.py-5:not(.image-showcase) > .container {
  max-width: 1160px;
}

.image-showcase .content-img {
  border-radius: 8px !important;
  width: 100% !important;
  height: 220px !important;
  object-fit: cover !important;
  display: block !important;
  border: 0 !important;
}

.volleyball-market-section .market-panel {
  background: rgba(22, 37, 53, 0.35);
  border: 1px solid rgba(30, 58, 74, 0.9);
  border-radius: 10px;
  padding: 28px;
}

.volleyball-market-section .market-head {
  max-width: 760px;
  margin-bottom: 18px;
}

.volleyball-market-section .market-note {
  margin-bottom: 24px;
}

.volleyball-market-section .market-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.volleyball-market-section .market-grid .bet-type-card {
  height: 100%;
  transform: none !important;
}

@media (min-width: 992px) {
  body > .hero-section .row.align-items-center {
    flex-direction: row-reverse;
  }

  .page-hero .row.align-items-center {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  }

  .page-hero .row.align-items-center > [class*="col-lg-"] {
    width: 100%;
    max-width: none;
  }

  body > section.py-5:not(.image-showcase) > .container > .row.g-5 {
    display: grid;
    grid-template-columns: minmax(0, 1.28fr) minmax(300px, 0.72fr);
    align-items: start;
  }

  body > section.py-5:not(.image-showcase):nth-of-type(even) > .container > .row.g-5 {
    grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
  }

  body > section.py-5:not(.image-showcase):nth-of-type(even) > .container > .row.g-5 > :first-child {
    order: 2;
  }

  body > section.py-5:not(.image-showcase) > .container > .row.g-5 > [class*="col-lg-"],
  body > section.py-5:not(.image-showcase) > .container > .row.g-5 > [class*="col-md-"] {
    width: 100%;
    max-width: none;
  }

  body > section.py-5:not(.image-showcase) .row.g-4 > [class*="col-"]:nth-child(2n) {
    transform: translateY(16px);
  }

  body > section.py-5:not(.image-showcase) .row.g-4 > [class*="col-"]:nth-child(3n) {
    transform: translateY(-8px);
  }

  .image-showcase .row {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px !important;
  }

  .image-showcase .row > [class*="col-"] {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    transform: none !important;
  }

  .image-showcase .row > [class*="col-"] > .content-img,
  .image-showcase .row > [class*="col-"] > img {
    height: 220px !important;
  }
}

@media (max-width: 991.98px) {
  .page-hero .container.text-center {
    text-align: center !important;
  }

  .page-hero .container.text-center .mx-auto,
  .page-hero .container.text-center .title-line-center {
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .image-showcase .row {
    row-gap: 18px;
  }

  .volleyball-market-section .market-panel {
    padding: 20px;
  }

  .volleyball-market-section .market-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .volleyball-market-section .market-grid {
    grid-template-columns: 1fr;
  }
}
