:root {
  --font-squada: 'Squada One', sans-serif;
  --font-rubik: 'Rubik', sans-serif;
  --color-primary: #8a0000;
  --color-primary-dark: #4b0000;
  --color-primary-light: #c10000;
  --color-accent: #ffbf00;
  --color-white: #ffffff;
  --color-black: #000000;
  --color-text-light: #d9d9d9;
  --color-text-medium: #696969;
  --primary-red: #b10000;
  --gradient-red: linear-gradient(180deg, #b10000 0%, #4b0000 100%);
  --background-gray: #f0f0f0;
  --color-darker-red-gradient: linear-gradient(180deg, #b10000 0%, #4b0000 100%);
}

body {
  margin: 0;
  font-family: var(--font-rubik);
  background-color: var(--color-white);
  color: var(--color-black);
}

.container {
  max-width: 1248px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

a {
  text-decoration: none;
  color: inherit;
}

h1, h2, h3, h4, h5, h6, p {
  margin: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.section-title {
  font-family: var(--font-squada);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.05;
  color: var(--color-black);
}

@media (max-width: 768px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* CSS for section section:header */
.site-header {
  background-color: var(--color-primary);
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
  z-index: 999;
  position: relative;
}
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}
.logo img {
  width: 113px;
  height: 58px;
}
.main-nav ul {
  display: flex;
  align-items: center;
  gap: 31px; /* Average of (931-803-97)=31 and (1077-931-115)=31 */
  list-style: none;
  margin: 0;
  padding: 0;
}
.main-nav a {
  font-family: var(--font-squada);
  font-size: 20px;
  font-weight: 400;
  color: var(--color-white);
  transition: color 0.3s;
}
.main-nav a.active,
.main-nav a:hover {
  color: var(--color-accent);
}

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1100;
}

.hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background: #ffffff;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Animasi berubah jadi X */
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

@media (max-width: 1024px) {
  .main-nav ul {
    gap: 20px;
  }
  .main-nav a {
    font-size: 24px;
  }
}

@media (max-width: 768px) {
  .header-container {
    height: auto;
    padding-top: 16px;
    padding-bottom: 16px;
    gap: 16px;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 70px;
    right: 0;
    width: 220px;
    background: white;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 10px 0;
  }
  .main-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 0;
    margin: 0;
  }

  .main-nav ul li a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    transition: background 0.2s;
  }

  .main-nav ul li a:hover {
    background: #f5f5f5;
  }

  .main-nav.active {
    display: block;
    animation: fadeIn 0.3s ease;
  }
  .hamburger {
    display: flex;
  }
}

/* CSS for section section:hero */
.hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 48px; /* 158px from top - 110px header */
  min-height: 281px;
  border-radius: 15px; /* From image style */
  overflow: hidden;
  margin-left: 96px;
  margin-right: 96px;
}
.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}
.hero-background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 23px; /* (374-280-71)=23 */
  text-align: center;
  padding: 20px;
}
.hero-title {
  font-family: var(--font-squada);
  font-size: 64px;
  font-weight: 400;
  color: var(--color-white);
  line-height: 1.05;
}
.hero-subtitle {
  font-family: var(--font-rubik);
  font-size: 20px;
  font-weight: 400;
  color: var(--color-text-light);
  line-height: 1.2;
  max-width: 1015px;
}
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  padding: 8px 17px;
  border-radius: 15px;
  font-family: var(--font-squada);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.05;
  cursor: pointer;
  transition: transform 0.2s;
}
.btn:hover {
  transform: scale(1.05);
}
.btn-light {
  background-color: var(--color-white);
  color: var(--color-primary);
}
.btn-light img {
  width: 25px;
  height: 25px;
}

@media (max-width: 1024px) {
  .hero-section {
    margin-left: 48px;
    margin-right: 48px;
  }
  .hero-title {
    font-size: 48px;
  }
  .hero-subtitle {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .hero-section {
    margin-left: 16px;
    margin-right: 16px;
    margin-top: 32px;
  }
  .hero-title {
    font-size: 36px;
  }
  .hero-subtitle {
    font-size: 16px;
  }
  .btn {
    font-size: 20px;
  }
}

/* CSS for section section:popular */
.popular-section {
  margin-top: 69px; /* 508 - (158+281) */
}
.popular-section .section-title {
  margin-bottom: 69px; /* 577 - 508 */
}
.popular-content {
  display: flex;
  align-items: center;
  gap: 70px; /* 660 - (154 + 436) */
}
.popular-card {
  flex-shrink: 0;
  width: 436px;
  height: 287px;
  background-color: var(--color-white);
  border-radius: 15px;
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
  display: flex;
  justify-content: center;
  align-items: center;
}
/* .popular-card img {
  width: 161px;
  height: 221px;
} */
.popular-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 39px; /* (683-610-34)=39, (823-683-71)=70, average is not good, using flex gap */
}
.popular-details h3 {
  font-family: var(--font-squada);
  font-size: 32px;
  font-weight: 400;
  line-height: 1.05;
  color: var(--color-black);
}
.popular-details p {
  font-family: var(--font-rubik);
  font-size: 20px;
  font-weight: 400;
  color: var(--color-text-medium);
  line-height: 1.2;
}
.btn-primary {
  background: linear-gradient(180deg, var(--color-primary-light) 0%, var(--color-primary) 100%);
  color: var(--color-white);
}
.btn-primary img {
  width: 25px;
  height: 25px;
}

@media (max-width: 1024px) {
  .popular-content {
    flex-direction: column;
    gap: 40px;
    align-items: center;
  }
  .popular-details {
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .popular-section {
    margin-top: 48px;
  }
  .popular-section .section-title {
    margin-bottom: 32px;
    text-align: center;
  }
  .popular-card {
    width: 100%;
    height: auto;
    padding: 20px;
  }
  .popular-card img {
    width: 50%;
    height: auto;
  }
}

/* CSS for section section:tournaments */
.tournaments-section {
  margin-top: 83px; /* 947 - (508+356) */
}
.tournaments-section .section-title {
  margin-bottom: 54px; /* 1001 - 947 */
}
.tournaments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 35px 44px;
}
.tournament-card {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
  aspect-ratio: 331 / 218;
  position: relative;
}
.tournament-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tournament-card:hover {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--color-white);
  transition: opacity 0.35s ease-in-out;
  box-shadow: 0px 20px 20px 0px rgba(0, 0, 0, 0.30);
}
.tournament-card:hover .card-bg {
  position: absolute;
  top: 0;
  left: 0;
  z-index: -1;
}
.tournament-card:hover .card-content {
  padding: 16px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.8) 150%);
  transform: translateY(0);
  transition: all 0.35s ease-in-out;
}
.tournament-card:hover h4 {
  font-family: var(--font-squada);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.05;
  margin-bottom: 3px; /* 1118 - 1090 - 25 */
}
.tournament-card:hover p {
  font-family: var(--font-rubik);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-text-light);
}
.pagination {
  margin-top: 72px; /* 1544 - (1001+218+35) */
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}
.pagination-items {
  display: flex;
  gap: 20px;
}
.page-item {
  position: relative;
  width: 46px;
  height: 46px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.page-item .page-bg, .page-item .page-bg-active {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}
.page-item .page-bg-active {
  /* This is an interpretation, as the active state was not a separate SVG */
  background-color: var(--color-primary);
  border-radius: 50%;
  border: none;
}
.page-item .page-bg {
  /* This is the default bordered circle from the SVG style */
  border: 2px solid var(--color-primary);
  border-radius: 50%;
  box-sizing: border-box;
}
.page-item .page-number {
  font-family: var(--font-rubik);
  font-size: 20px;
  font-weight: 600;
  color: var(--color-primary);
}
.page-item.active .page-number {
  color: var(--color-white);
}
.page-arrow img {
  width: 22px;
  height: 35px;
}

@media (max-width: 1024px) {
  .tournaments-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .tournaments-section {
    margin-top: 48px;
  }
  .tournaments-section .section-title {
    text-align: center;
    margin-bottom: 32px;
  }
  .tournaments-grid {
    grid-template-columns: 1fr;
  }
  .pagination {
    margin-top: 48px;
  }
}

/* CSS for section section:footer */
.site-footer {
  margin-top: 125px; /* 1715 - (1544+46) */
  background: linear-gradient(180deg, #b10000 0%, #4b0000 100%);
  padding: 15px 0;
}
.site-footer p {
  color: var(--color-white);
  font-family: var(--font-rubik);
  font-weight: 500;
  font-size: 16px;
  text-align: center;
}

/* CSS for section section:schedule */
.schedule-section {
  background-color: var(--background-gray);
  padding: 55px 0 76px;
}

.schedule-container {
  display: grid;
  grid-template-columns: 325px 1fr;
  gap: 45px;
  max-width: 1355px;
  margin: 0 auto;
  padding: 0 20px;
}

.schedule-nav {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.nav-item {
  display: flex;
  position: relative;
  justify-content: center;
  align-items: center;
  height: 46px;
  border-radius: 10px;
  font-size: 22px;
  font-weight: 600;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

.nav-item.active {
  background: var(--gradient-red);
  color: var(--color-text-light);
  border: 1px solid var(--primary-red);
}

.nav-item:not(.active) {
  background-color: var(--background-light);
  color: var(--primary-red);
  border: 1.5px solid var(--primary-red);
}

.nav-item.active > a {
  color: var(--color-text-light);
  display: block;
}

/* parent non-clickable */
.has-submenu > a.parent{pointer-events:none;cursor:default}

.schedule-content {
  padding-left: 45px;
  border-left: 5px solid var(--dark-red);
}

.content-title {
  font-size: 20px;
  font-weight: 500;
  margin: 0 0 36px 0;
}

.matches-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(255px, 1fr));
  gap: 44px;
  margin-bottom: 100px;
}

.match-card {
  background-color: var(--color-white);
  border-radius: 10px;
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
  padding: 17px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.match-info-top {
  font-size: 7px;
  color: var(--text-gray);
  margin: 0 0 10px 0;
}

.match-teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 11px;
}

.match-teams img {
  width: 79px;
  height: 79px;
  object-fit: contain;
}

.match-teams .vs {
  font-size: 20px;
  font-weight: 600;
}

.match-info-time {
  font-size: 7px;
  color: var(--text-gray);
  margin: 0 0 10px 0;
}

.match-card .separator {
  border: none;
  border-top: 1px solid var(--background-gray);
  width: 100%;
  margin: 0 0 9px 0;
}

.match-score {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-gray);
  margin: 0;
}

@media (max-width: 1024px) {
  .schedule-container {
    grid-template-columns: 1fr;
  }
  .schedule-nav {
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
  }
  .schedule-content {
    border-left: none;
    padding-left: 0;
    margin-top: 30px;
  }
  .matches-grid {
    margin-bottom: 60px;
  }
}

/* CSS for section section:hero */
.hero-section-details  {
  background-color: var(--color-primary);
  position: relative;
  overflow: visible; /* biar gambar boleh keluar */
  border-bottom-left-radius: 50% 90%;
  border-bottom-right-radius: 50% 90%;
  margin-bottom: 100px;
  height: 600px;
}
.hero-section-details .hero-container {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 60px; /* biar nggak kepotong */
}

.hero-section-details .hero-content {
  max-width: 805px;
}
.hero-section-details .hero-logos {
  position: relative;
  width: 146px;
  height: 59px;
  margin: 0 auto 14px;
}
.hero-section-details .logo-putih {
  position: absolute;
  width: 87px;
  height: 45px;
  top: 7px;
  left: 70px;
}
.hero-section-details .logo-mask {
  position: absolute;
  height: 59px;
  top: 0;
  left: 0;
}
.hero-section-details .logo-mask img {
  width: 100%;
  height: 100%;
}
.hero-section-details .hero-title {
  font-size: 64px;
  font-weight: 700;
  color: var(--color-white);
  line-height: 57px;
  margin-bottom: 3px;
}
.hero-section-details .hero-subtitle {
  font-size: 48px;
  font-weight: 700;
  color: var(--color-secondary);
  line-height: 57px;
  margin-bottom: 8px;
}
.hero-section-details .hero-description {
  font-size: 24px;
  font-weight: 400;
  color: #eaeaea;
  line-height: 28px;
  max-width: 756px;
  margin: 0 auto 20px;
}
.hero-section-details .hero-info-wrapper {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}
.hero-section-details .info-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  color: var(--color-text-light);
  font-size: 14px;
  font-weight: 500;
  border-radius: 15px;
  border: 1px solid #C10000;
  background: rgba(106, 106, 106, 0.30);
}
.hero-section-details .info-chip img {
  width: 14px;
  height: 15px;
  object-fit: contain;
}
.hero-section-details .hero-cta-buttons {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-bottom: 37px;
}
.hero-section-details .hero-cta-buttons .btn {
  padding: 10px 18px;
}
.hero-section-details .hero-image-container {
  width: 100%;
  text-align: center;
}
.hero-section-details .hero-image {
  max-width: 553px;
  width: 100%;
  height: auto;
  position: absolute;
  margin-top: -40px; /* naikkan gambar */
  left: 450px;
  z-index: 2;
}
@media (max-width: 768px) {
  .hero-content {
    gap: 0;
  }
  .hero-section-details {
    border-bottom-left-radius: 50% 60%;
    border-bottom-right-radius: 50% 60%;
    height: 300px;
    margin-bottom: 50px;
  }
  .hero-section-details .hero-title, .hero-section-details .hero-subtitle {
    font-size: 20px;
    line-height: 1.2;
  }
  .hero-section-details .hero-description {
    font-size: 10px;
    margin-bottom: 10px;
    line-height: normal;
  }
  .hero-section-details .hero-info-wrapper {
    flex-direction: column;
    align-items: center;
  }
  .hero-section-details .logo-mask {
    height: 25px;
    top: 5px;
    left: 40px;
  }
  .hero-section-details .logo-putih {
    height: 20px;
    width: auto;
  }
  .hero-section-details .hero-logos {
    height: 20px;
  }
  .hero-section-details .info-chip {
    padding: 5px;
    gap: 5px;
    font-size: 6px;
  }
  .hero-section-details .info-chip img {
    width: 7px;
  }
  .nav-item {
    height: auto;
    font-size: 10px;
    padding: 5px;
  }
  .schedule-container {
    gap: 10px;
  }
  .schedule-content {
    margin-top: 10px;
  }
  .content-title {
    font-size: 14px;
    margin: 0 0 24px 0;
  }
  .matches-grid {
    display: grid;
    grid-template-columns: minmax(255px, 680px); /* kolom tidak 1fr */
    justify-content: center;                      /* pusatkan kolom */
    gap: 10px;
  }
  .match-card {
    max-width: 400px;
  }
  .match-teams img {
    width: 50px;
    height: auto;
    object-fit: contain;
  }
  .match-teams {
    gap: 50px;
  }
  .status-match {
    padding: 2px 10px;
    font-size: 10px;
  }
}

.tables-content {
  display: flex;
  gap: 20px;
  flex-grow: 1;
}

.league-table {
  background-color: var(--color-white);
  border-radius: 10px;
  box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
  padding: 13px 18px 25px;
  flex: 1;
  min-width: 0;
  height: fit-content;
}

.group-title {
  text-align: center;
  font-weight: 600;
  font-size: 12px;
  color: var(--color-text-dark);
  margin: 0 0 25px 0;
}

.table-header {
  display: flex;
  justify-content: space-between;
  padding: 0 10px 10px;
  font-weight: 600;
  font-size: 12px;
  color: var(--color-text-gray);
}

.header-club {
  flex: 1;
  min-width: 150px;
}

.header-stats {
  display: grid;
  grid-template-columns: repeat(6, 25px);
  justify-content: end;
  text-align: center;
  gap: 0;
}

.team-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.team-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  font-weight: 600;
  font-size: 12px;
  color: var(--color-text-dark);
  min-height: 45px;
}

.team-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 150px;
}

.team-info img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
}

.team-stats {
  display: grid;
  grid-template-columns: repeat(6, 25px);
  justify-content: end;
  text-align: center;
  gap: 0;
}

 .topscore-content {
    flex-grow: 1;
    padding-left: 8px; /* Approx 53px total gap */
  }

  .stats-category {
    margin-bottom: 46px;
  }
  .stats-category:last-child {
    margin-bottom: 0;
  }

  .category-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 23px 0;
  }
  
  .cleansheet-title {
    text-align: left;
  }

  .cards-container {
    display: flex;
    gap: 120px;
  }

  .player-card {
    width: 200px;
    flex-shrink: 0;
  }
  
  .player-card.placeholder {
    width: 141px;
    height: 154px;
    background-color: var(--bg-white);
    border-radius: 10px;
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
  }

  .player-image-wrapper {
    position: relative;
    width: 141px;
    height: 154px;
    margin-bottom: 12px;
  }

  .player-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
  }

  .player-rank {
    position: absolute;
    top: 4px;
    left: 5px;
    width: 23px;
    height: 23px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .player-rank .rank-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
  }

  .player-rank .rank-number {
    position: relative;
    z-index: 2;
    font-size: 14px;
    font-weight: 600;
  }

  .player-rank.rank-1 .rank-number {
    color: var(--bg-white);
  }
  .player-rank.rank-2 .rank-number {
    color: var(--primary-red);
  }

  .player-info .player-name-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
  }
  
  .player-info .player-number {
    display: flex;
    align-items: center;
    gap: 5px;
  }

  .player-info .player-team {
    font-size: 10px;
    font-weight: 400;
    color: var(--text-gray);
    margin: 0;
  }

  .player-info .info-divider {
    border: none;
    height: 1px;
    background-color: var(--text-gray);
    margin: 5px 0;
  }

  .player-info .player-stats {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary-red);
    margin: 0;
  }

  @media (max-width: 1200px) {
    .cards-container {
      gap: 30px;
      flex-wrap: wrap;
    }
  }

  @media (max-width: 992px) {
    .stats-container {
      flex-direction: column;
      align-items: center;
      padding: 0 20px;
    }
    .divider {
      width: 100%;
      height: 5px;
    }
    .main-content {
      padding-left: 0;
      width: 100%;
    }
    .cards-container {
      justify-content: center;
    }
  }

  @media (max-width: 480px) {
    .nav-link {
      width: 100%;
    }
    .sidebar-nav {
      width: 100%;
    }
  }

.gallery-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 27px 45px;
}

.gallery-item {
  border-radius: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
  aspect-ratio: 255 / 152;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-item.placeholder {
  background-color: var(--white);
}

/* submenu */
.submenu {
  display: none;
  position: absolute;
  left: 100%;
  top: 0;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  min-width: 300px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
  z-index: 10;
}

.submenu a {
  display: block;
  padding: 8px 12px;
  color: #333;
  text-decoration: none;
  transition: background 0.3s;
  font-size: 20px;
  font-weight: 400;
}
.submenu a:hover {
  background: #f2f2f2;
}

.has-submenu:hover .submenu {
  display: block;
  animation: fadeIn 0.25s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .submenu {
    min-width: 200px;
  }
  .submenu a {
    font-size: 8px;
  }
}

.score {
  display: flex;
}
.score p {
  margin: 0 20px;
}

.status-match {
  padding: 2px 10px;
  background-color: var(--color-primary);
  color: var(--color-white);
  border-radius: 10px;
  display: flex; /* Mengaktifkan flexbox */
  align-items: center; /* Menempatkan konten di tengah secara vertikal */
  justify-content: center; /* Menempatkan konten di tengah secara horizontal */
}

#scoreboard {
  padding-top: 80px;
  padding-bottom: 50px;
}
.match-summary {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 20px;
}
.team-summary {
  display: flex;
  flex-direction: column;
  gap: 25px;
}
.team-identity {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.team-logo {
  width: 200px;
  height: 200px;
  object-fit: cover;
}
.team-name-scoreboard {
  font-size: 22px;
  font-weight: 600;
  color: var(--color-black);
  text-align: center;
}
.team-events {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.event-item {
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-medium);
}
.event {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 2px;
}
.team-a .event {
  justify-content: flex-end;
}
.team-b .event {
  justify-content: flex-start;
}
.event-player-sub {
  text-align: right;
}
.event-icon {
  width: 23px;
  height: 23px;
}
.yellow-card {
  width: 18px;
  background-color: var(--color-accent);
}
.red-card {
  width: 18px;
  background-color: var(--color-primary);
}
.substitution-icon {
  position: relative;
  width: 17px;
  height: 21px;
}
.substitution-icon img {
  position: absolute;
  left: 0;
}
.sub-out { top: 0; }
.sub-in { bottom: 0; }
.goal-icon {
  width: 23px;
  height: 23px;
}
.score-summary {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-top: 77px;
}
.score-digit {
  font-size: 64px;
  font-weight: 600;
}
.match-time-status {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 10px 24px;
  border-radius: 15px;
  font-size: 22px;
  font-weight: 600;
}

@media (max-width: 992px) {
  #scoreboard {
    padding: 80px 0;
  }
  .match-summary {
    gap: 40px;
  }
  .score-summary { order: 1; justify-content: center; padding-top: 0; }
  .team-b { order: 3; }
  .team-a .event-item, .team-b .event-item {
    justify-content: center;
  }
}

/* CSS for section section:lineup */
.lineup-section {
  background-color: var(--color-primary);
  padding-top: 55px;
  padding-bottom: 99px;
}
.tabs {
  display: flex;
  align-items: center;
  gap: 45px;
  margin-bottom: 53px;
}
.tab-button {
  font-family: var(--font-rubik);
  font-size: 22px;
  font-weight: 600;
  border-radius: 10px;
  padding: 10px 40px;
  cursor: pointer;
  border: none;
  line-height: 26px;
}
.tab-button.active {
  background: var(--color-darker-red-gradient);
  border: 1px solid var(--color-primary);
  color: var(--color-white);
}
.tab-button:not(.active) {
  background-color: var(--color-white);
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary);
}
.lineup-display {
  display: grid;
  grid-template-columns: 479px 1fr;
  gap: 22px;
  align-items: start;
  justify-content: center;
}
.field-view {
  position: relative;
  width: 479px;
  height: 763px;
  background-image: url('../images/31b48c72ce272e5b149e022d399aa9cda250b712.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.player-dot {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;        /* kunci: jaga proporsi & crop tengah */
  object-position: center;  /* fokus di tengah */
  display: block;           /* hindari spasi/line-height aneh */
  flex: 0 0 45px;           /* kalau di dalam flex, pastikan fix 60px */
  background: #eee;         /* biar gak transparan saat fallback */
}
.players-view {
  display: flex;
  flex-direction: column;
  gap: 30px;
}
.team-roster {
  min-height: 370px;
}
.roster-title {
  font-size: 22px;
  font-weight: 600;
  color: var(--color-white);
  margin-bottom: 13px;
  padding: 0 20px;
}
.roster-list {
  list-style: none;
  padding: 0 20px;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  row-gap: 13px;
}
.player-item {
  position: relative;
  display: flex;
  align-items: center;
}
.player-photo-lineup {
  width: 45px;
  height: 45px;
  object-fit: cover;        /* kunci: jaga proporsi & crop tengah */
  object-position: center;  /* fokus di tengah */
  display: block;           /* hindari spasi/line-height aneh */
  flex: 0 0 45px;           /* kalau di dalam flex, pastikan fix 60px */
  background: #eee;         /* biar gak transparan saat fallback */
  border-radius: 50%;
}
.player-name-number {
  color: var(--color-white);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  margin: 0 10px;
}

@media (max-width: 1200px) {
  .lineup-display {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 40px;
  }
  .players-view {
    width: 100%;
    max-width: 600px;
  }
}
@media (max-width: 768px) {
  .field-view {
    width: 100%;
    max-width: 350px;
    height: auto;
    aspect-ratio: 479 / 763;
  }
  .roster-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .player-name-number {
    position: static;
    transform: none;
    padding-left: 15px;
  }
}
@media (max-width:768px) {
  #scoreboard {
    padding: 30px 0;
  }
  .match-summary {
    gap: 10px;
  }
  .score-digit {
    font-size: 30px;
  }
  .match-time-status {
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 10px;
  }
  .team-logo {
    width: 50px;
    height: auto;
  }
  .team-name-scoreboard {
    font-size: 10px;
  }
  .lineup-section {
    padding-top: 20px;
  }
  .tabs {
    gap: 20px;
    justify-content: center;
    margin-bottom: 15px;
  }
  .tab-button {
    font-size: 14px;
    padding: 10px 10px;
    line-height: 0;
    border-radius: 5px;
  }
  .player-dot {
    width: 35px;
    height: 35px;
  }
  .players-view {
    flex-direction: row;
    gap: 10px;
    width: 90%;
    justify-content: center;
  }
  .roster-title {
    font-size: 10px;
    text-align: center;
  }
  .roster-list  {
    grid-template-columns: 170px;
    gap: 10px;
  }
  .player-photo-lineup {
    height: 25px;
    flex: 0 0 25px;
  }
  .player-name-number {
    padding-left: none;
  }
  .event-item {
    font-size: 8px;
  }
  .score-summary {
    gap: 10px;
  }
  .event-icon {
    height: 15px;
  }
  .goal-icon {
    width: 15px;
    height: 15px;
  }
  .yellow-card {
    width: 15px;
  }
  .red-card {
    width: 15px;
  }
  .gallery-grid {
    gap: 10px 10px;
    grid-template-columns: repeat(2, 1fr);
  }
}
