* {
  box-sizing: border-box;
}

:root {
  --page-bg: #f2ecdd;
  --green: #278d3e;
  --green-dark: #17712f;
  --green-light: #dcebd2;
  --green-text: #399447;
  --line: #cfe2c6;
  --text: #277f38;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Alan Sans", sans-serif;
  background: var(--page-bg);
  color: var(--text);
}

.page {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  padding: 20px 28px 70px;
}

.header {
  text-align: center;
  margin-bottom: 18px;
}

.header h1 {
  margin: 0;
  color: var(--green);
  font-size: clamp(28px, 4vw, 43px);
  font-weight: 800;
  letter-spacing: .3px;
}

.subtitle {
  margin: 5px 0 0;
  color: #6d8b69;
  font-size: 13px;
  opacity: .8;
}

.groups-grid {
  width: min(100%, 1160px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(175px, 1fr));
  column-gap: 28px;
  row-gap: 36px;
  position: relative;
  z-index: 2;
}

.group-card {
  min-width: 0;
  position: relative;
}

.group-card:nth-child(n+9) {
  grid-column: span 1;
}

.group-card:nth-child(9) {
  grid-column: 1;
}

.group-card:nth-child(10) {
  grid-column: 2;
}

.group-card:nth-child(11) {
  grid-column: 3;
}

.group-card:nth-child(9),
.group-card:nth-child(10),
.group-card:nth-child(11) {
  transform: translateX(50%);
}
/* ============================================================
   GROUP BANNER TEMPLATE
   Uses the supplied banner image as the actual banner.
   The group name is still generated by script.js.
   ============================================================ */

.group-banner {
  position: relative;
  width: 110%;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;

  margin: -10px -12px;
  background-image: url("assets/group_banner_template.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 125%;

  color: white;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .4px;
  text-transform: uppercase;
}

.group-banner span {
  position: relative;
  z-index: 2;
  margin-top: -1px;
  color: white;
  text-shadow: 0 1px 1px rgba(0,0,0,.18);
}

.team-list {
  margin: 0 28px;
  padding: 9px 12px 9px;
  list-style: none;
}

.team {
  min-height: 29px;
  padding: 7px 8px 6px;
  text-align: center;
  font-size: 11px;
  line-height: 1.1;
  font-weight: 700;
  color: var(--green-text);
  background: rgba(226,239,218,.65);
  border-bottom: 6px solid rgba(199,221,191,.7);
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team:last-child {
  border-bottom: 0;
}


/* Tablet */
@media (max-width: 900px) {
  .groups-grid {
    grid-template-columns: repeat(3, minmax(150px, 1fr));
    column-gap: 22px;
  }

  .group-card:nth-child(9),
  .group-card:nth-child(10),
  .group-card:nth-child(11) {
    grid-column: auto;
  }
}

/* Mobile */
@media (max-width: 620px) {
  .page {
    padding: 18px 12px 65px;
  }

  .groups-grid {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
    gap: 16px 12px;
  }

  .group-banner {
    height: 36px;
    font-size: 13px;
  }

  .team {
    min-height: 27px;
    font-size: 9px;
  }

  .team-list {
    margin: 0 8px;
  }

  .group-card::after {
    right: 8px;
  }

    .navbar {
    height: 62px;
    padding: 0 18px;
  }

  .nav-logo img {
    width: 44px;
    height: 44px;
  }

  .nav-menu {
    gap: 20px;
  }

  .nav-menu a {
    font-size: 12px;
  }

  .page {
    min-height: calc(100vh - 62px);
  }
}

@media (max-width: 380px) {
  .groups-grid {
    grid-template-columns: 1fr;
  }
}





/* ============================================================
   NAVBAR
   ============================================================ */

.navbar {
  width: 100%;
  height: 72px;

  display: flex;
  align-items: center;

  padding: 0 40px;

  background: #5F75FD;

  position: relative;
  z-index: 100;

  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* LOGO */

.nav-logo {
  display: flex;
  align-items: center;
}

.nav-logo img {
  width: 90%;
  height: 90%;
  padding-bottom: 10px;
  padding-top: 10px;
  object-fit: contain;
}


/* MENU */

.nav-menu {
  margin-left: auto;
  
  display: flex;
  align-items: center;

  gap: 42px;
}

.nav-menu a {
  position: relative;

  font-family: "Alan Sans", sans-serif;

  font-size: 15px;
  font-weight: 600;

  color: #ffffff;

  text-decoration: none;

  padding: 8px 0;

  transition: color 0.2s ease;
}

.nav-menu a:hover {
  color: #ffffff;
}


/* ACTIVE MENU */

.nav-menu a.active {
  font-weight: 800;
}

.nav-menu a.active::after {
  content: "";

  position: absolute;

  left: 0;
  right: 0;
  bottom: 0;

  height: 3px;

  background: #C7BD55;

  border-radius: 10px;
}

.page {
  min-height: calc(100vh - 72px);

  position: relative;
  overflow: hidden;

  padding: 25px 28px 70px;
}

/* ============================================================
   PLAY NOW
   ============================================================ */


.play-now {
  position: relative;

  width: clamp(105px, 40vw, 155px);
  aspect-ratio: 1 / 1;

  margin-left: 42px;

  display: flex;
  align-items: center;
  justify-content: center;

  background-image: url("assets/PlayNow.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;

  color: white;
  text-decoration: none;

  font-family: "Alan Sans", sans-serif;
  font-size: clamp(12px, 5vw, 15px);
  font-weight: 800;

  transition: transform .2s ease;

  flex-shrink: 0;
}

.play-now:hover {
  transform: translateY(-2px);
}

.play-now span {
  position: relative;
  z-index: 2;

  transform: translateY(-1px);
}

.play-now::before {
  content: "";

  position: absolute;

  left: 12px;
  right: 12px;

  top: 5px;

  height: 2px;

  pointer-events: none;
}


.watermark {
  
  position: absolute;
  left: 50%;
  top : 90%;
  bottom: 0px;
  transform: translateX(-50%);
  font-size: 54px;
  font-weight: 900;
  letter-spacing: -4px;
  color: rgba(110, 110, 90, .06);
  pointer-events: none;
  z-index: 1;
}
