/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f4f4f4;
  color: #333;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 1rem;
}

/* Navbar */
.navbar {
  background-color: #004080;
  color: #fff;
  padding: 1rem 0;
}

.navbar .logo {
  font-size: 1.8rem;
  font-weight: bold;
}

.nav-menu ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-top: 0.8rem;
}

.nav-menu a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  text-decoration: underline;
}

/* Main Content */
.main-content {
  padding: 2rem 0;
}

.match-card .team-logo {
  width: 100px;
  max-height: 70px;
  object-fit: contain;
}

@media (max-width: 576px) {
  .match-card .card-body {
    flex-direction: column !important;
    gap: 1rem;
    text-align: center;
  }

  .match-card .team-logo {
    width: 80px;
    max-height: 60px;
  }

  .match-card .fs-3 {
    font-size: 1.5rem;
  }
}

.sponsor-container {
  width: 100%;
  margin: 0 auto;
}

#sponsorBanner img {
  width: 100%;
  object-fit: contain;
  padding: 5px;
}

#standingsSection table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

#standingsSection th,
#standingsSection td {
  border: 1px solid #dee2e6;
  padding: 0.5rem;
  font-size: 14px;
  vertical-align: middle;
  text-align: center;
}

#standingsSection th:nth-child(1),
#standingsSection td:nth-child(1) {
  width: 5%; /* kolom '#' kecil */
}

#standingsSection th:nth-child(2),
#standingsSection td:nth-child(2) {
  width: 30%; /* kolom 'Team' lebih lebar */
  text-align: left;
}

#standingsSection th:nth-child(3),
#standingsSection td:nth-child(3),
#standingsSection th:nth-child(4),
#standingsSection td:nth-child(4),
#standingsSection th:nth-child(5),
#standingsSection td:nth-child(5),
#standingsSection th:nth-child(6),
#standingsSection td:nth-child(6),
#standingsSection th:nth-child(7),
#standingsSection td:nth-child(7) {
  width: 13%; /* kolom MP, W, D, L, Pts */
}




/* Footer */
.footer {
  background-color: #222;
  color: #ccc;
  text-align: center;
  padding: 1rem 0;
  margin-top: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
  .nav-menu ul {
    flex-direction: column;
    gap: 0.5rem;
  }

  .navbar .logo {
    text-align: center;
  }

  .nav-menu {
    text-align: center;
  }
}
