/* Navbar */
.main-navbar {
  background-color: #28a745;
  color: white;
  padding: 1rem 0;
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  flex-wrap: wrap;
}

.nav-title {
  font-weight: bold;
  color: white;
  text-decoration: none;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  margin-right: 2rem;
}

.nav-title-icon {
  height: 24px;
  width: 24px;
  margin-right: 8px;
}

.toggle-button {
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  display: none;
}

.nav-links {
  display: flex;
  justify-content: space-between;
  flex-grow: 1;
  align-items: center;
}

.nav-left, .nav-right {
  display: flex;
  list-style: none;
  gap: 1rem;
  padding: 0;
  margin: 0;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-size: 1rem;
}

.nav-links a:hover,
.nav-links a:focus,
.nav-links a:active {
  background-color: transparent !important;
  color: white !important;
  box-shadow: none !important;
  text-decoration: none;
}

.nav-left {
  margin-right: auto;
}

.nav-right {
  margin-left: auto;
}

/* Main content */
.main-content-wrapper {
  max-width: 950px;
  margin: 0 auto;
  padding: 0 1rem;
}

.main-content {
  flex: 1 0 auto;
  padding: 2rem 1rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.main-content-wrapper {
  max-width: 950px;
  margin: 0 auto;
  padding: 0 1rem;
}

.main-heading {
  font-weight: 700;
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
  color: #155724;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Homepage pitch */
.pitch-image-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
  /* padding: 0 1rem; */
}

.pitch-image {
  width: 100%;
  max-width: 950px;
  height: auto;
  border-radius: 8px;
}

/* Homepage lineups */
.lineup-row {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  /* gap: 1rem; */
  margin: 0 auto;
}

.lineup-col {
  flex: 1 1 45%;
  /* width: 100%; */
  max-width: 100%;
  min-width: 300px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 1.5rem;
  margin: 0.5rem 0;
  box-sizing: border-box;
}

.lineup-col h3 {
  margin-bottom: 1rem;
  text-align: center;
}
 
.lineup-col .player-list {
  display: flex;
  flex-direction: column;
  padding-left: 0;
  margin-bottom: 0;
}

.lineup-col .player {
  position: relative;
  display: block;
  padding: .75rem 1.25rem;
  background-color: #fff;
  border-bottom: 1px solid rgba(0,0,0,.125);
}

.lineup-col .player:last-child {
  border-bottom: 0;
}

/* Homepage match details */
.match-details-wrapper {
  max-width: 950px;
  margin: 2rem auto;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  padding: 2rem;
}

.match-details-heading {
  text-align: center;
  margin-bottom: 1.5rem;
  font-weight: 700;
  font-size: 1.5rem;
}

.match-details-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.match-detail-item {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #eaeaea;
}

.match-detail-item:last-child {
  border-bottom: none;
}

.match-detail-value {
  font-weight: 500;
  color: #333;
}

/* Footer */
footer {
  font-size: 0.9rem;
  background-color: #28a745;
  color: white;
  text-align: center;
  padding: 1rem 0;
}

/* Mobile */
@media (max-width: 768px) {
  .navbar-container {
    flex-direction: column;
    align-items: stretch;
  }

  .navbar-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 1rem;
  }

  .nav-title {
    margin: 0 auto;
    text-align: center;
  }

  .toggle-button {
    display: block;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    display: none;
    margin-top: 1rem;
    background-color: #28a745;
    border-top: 1px solid #1e7e34;
    padding-top: 0.5rem;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-left,
  .nav-right {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 0.5rem;
  }

  .nav-links a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.5rem;
    border-radius: 4px;
  }

  .nav-links a:hover {
    background-color: #1e7e34;
  }
}