/* Responsive Table CSS */
table {
  border: 1px solid #ccc;
  border-collapse: collapse;
  margin: 0;
  padding: 0;
  width: 100%;
  table-layout: fixed;
}

table caption {
  font-size: 1.5em;
  margin: 0.5em 0 0.75em;
}

table tr {
  background-color: #f8f8f8;
  border: 1px solid #ddd;
  padding: 0.35em;
}

tr:nth-child(even) {
  background-color: #ffffff;
}

tr.headers {
  background-color: #dfdede;
}

table th,
table td {
  padding: 0.625em;
  text-align: center;
}

table th {
  font-size: 0.85em;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.mobileHeaders {
  display: none;
}

@media screen and (max-width: 600px) {
  table {
    border: 0;
  }

  table caption {
    font-size: 1.3em;
  }

  table thead {
    border: none;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
  }

  table tr {
    border-bottom: 3px solid #ddd;
    display: block;
    margin-bottom: 0.625em;
  }

  table td {
    border-bottom: 1px solid #ddd;
    display: block;
    font-size: 0.8em;
    text-align: right;
  }

  table td::before {
    /*
    * aria-label has no advantage, it won't be read inside a table
    content: attr(aria-label);
    */
    content: attr(data-label);
    float: left;
    font-weight: bold;
    text-transform: uppercase;
  }

  table td:last-child {
    border-bottom: 0;
  }

  .mobileHeaders {
    display: flex;
  }
}

caption {
  text-align: center;
  caption-side: top;
}
/* End Responsive Table CSS */

div.standingsDiv {
  font-family: Tahoma, Verdana, Segoe, sans-serif;
  padding: 10px;
}
.standingsContainer {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.flex-item {
  /* flex-grow: 1; */
  width: 50%;
}

h4.standingsh4 {
  margin: 0px;
}

ul.standingsUl {
  padding-inline-start: 0px;
}

.standingsUl li {
  list-style-type: none;
  padding: 3px;
}

a {
  font-weight: 500;
}

.standingsContainer.single-division {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.standingsContainer.single-division {
  justify-content: center;
}

.standingsDiv {
  background: linear-gradient(180deg, #ffffff 0%, #faf9f7 100%);
  border-radius: 1rem;
  box-shadow:
    0 2px 16px rgba(0, 0, 0, 0.06),
    0 1.5px 4px rgba(0, 0, 0, 0.03);
  padding: 1.5rem 1.5rem 1rem 1.5rem;
  min-width: 260px;
  max-width: 340px;
  flex: 1 1 260px;
  margin: 0.5rem 0;
  transition: all 0.3s ease;
  border-top: 3px solid #f5593d;
}

.standingsDiv:hover {
  box-shadow:
    0 8px 32px rgba(245, 89, 61, 0.15),
    0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-4px);
}

.standingsh4 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: #403d39;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-bottom: 2px solid #f5593d;
  padding-bottom: 0.5rem;
}

.standingsUl {
  list-style: none;
  padding: 0;
  margin: 0;
}

.standingsUl li {
  margin-bottom: 0.75rem;
}

.standingsUl li a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  color: #66615b;
  text-decoration: none;
  font-weight: 500;
  background: linear-gradient(135deg, #faf9f7 0%, #f5f4f2 100%);
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.standingsUl li a:hover {
  background: linear-gradient(135deg, #fff5f3 0%, #ffe8e4 100%);
  color: #f5593d;
  border-left: 3px solid #f5593d;
  transform: translateX(4px);
}

@media (max-width: 900px) {
  .standingsContainer {
    gap: 1rem;
    justify-content: center;
  }

  .standingsDiv {
    width: calc(100% - 20px);
    min-width: auto;
    max-width: 100%;
    padding: 1rem;
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  .standingsContainer {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0 10px;
  }

  .standingsDiv {
    width: 100%;
    min-width: auto;
    max-width: 100%;
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin: 0 auto;
  }

  .standingsh4 {
    font-size: 1.1rem;
  }

  .standingsUl li a {
    font-size: 1rem;
    padding: 0.5rem 0.5rem;
  }
}

/* Page Header Styling */
.page-header .title {
  color: #fff;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-header .description {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 400;
}

/* Main Section Background */
.main {
  background: linear-gradient(180deg, #ffffff 0%, #f8f7f5 50%, #f5f4f2 100%);
}

@media (max-width: 600px) {
  .main .container {
    padding-left: 15px;
    padding-right: 15px;
  }
}

.main .section {
  padding: 20px 0;
}
