#wrapper {
  display: grid;
  background-color: black;
  grid-auto-rows: minmax(0, auto);
  grid-template-columns: minmax(0px, 1fr) repeat(6, minmax(0, 210px)) minmax(0px, 1fr);
}
header {
  grid-row:1 / 2;
  grid-column: 2 / -2;
  font-family:'Ariel Narrow Bold';
  text-align: center;
  background-color: black;
  padding: 60px 40px;
  font-size: larger;
}
header h1 {
  background-position: right;
  background-repeat: no-repeat;
  padding-left: 1em;
  background-origin: content-box;
  margin: 0;
  color: pink;
  font-size: 3rem;
}
nav {
  grid-row: 2 / 3;
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  background-color: transparent;
  padding: 0;
  margin: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.hero {
  height: 200px;
  background-color: black;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}
main {
    grid-row: 5 / 6;
    grid-column: 2 / -2;
    text-align: center;

}
footer{
    grid-row: 6 / 7;
    grid-column: 1 / -1;
    background-color: gray;
}
.flex-menu {
  display: flex;
  justify-content: center;
  list-style-type: none;
  background-color: #424242;
  border-radius: 14px;
  width: 90%;
  max-width: 1200px;
  margin: 10px auto;
  padding: 0;
}
#homehero {
  height: 420px;
  background-image: url("images/vexworldsv.PNG");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  grid-row: 3 / 5;
  grid-column: 1 / -1;
}
li{
    padding: 1px 0px;
}
a{
    color:white;
    text-decoration: none;
    font-family:'Ariel Narrow Bold';
    font-weight:bold;
}
nav ul {
  margin: 0;
  padding: 0;
  display: flex;
  flex-flow: row nowrap;
  list-style-type: none;
  width: 100%;
}

nav a {
  text-decoration: none;
  color: #FFFFFF;
  padding: 1.2rem 0rem;
  display: block;
  text-align: center;
  font-size: 1.1rem;
}
nav ul li{
  width: 100%;
  flex: 1;
}
nav a:hover{
  background-color: #BA1C21;
}
nav {
  grid-row: 2 / 3;
  grid-column: 1 / -1;   /* 👈 full width */
  font-weight: bold;
  padding: 0;
  margin: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}
footer {
  grid-row: 6 / 7;
  grid-column: 1 / -1;
  background-color: gray;
  padding: 10px 20px;
  color: white;
  overflow: auto;
}

.footer-left {
  float: left;
  text-align: left;
}

.footer-right {
  float: right;
  text-align: right;
}

.footer-left p,
.footer-right p {
  margin: 0;
  line-height: 1.4;
}

.footer-right a {
  color: white;
  text-decoration: none;
}

.footer-right a:hover {
  text-decoration: underline;
}
.about-main {
  grid-row: 3 / 6;
  grid-column: 2 / -2;
  background-color: black;
  color: white;
  padding: 40px 20px;
}

.about-main h2 {
  text-align: center;
  color: pink;
  margin-bottom: 40px;
  font-family: 'Ariel Narrow Bold';
}

.team-section {
  display: flex;
  justify-content: center;
}
.team-card img {
  width: 100%;
  max-width: 180px;
  height: 180px;
  object-fit: cover;
  display: block;
  margin: 0 auto 15px auto;
  border-radius: 10px;
}
.team-card h3 {
  color: pink;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.team-card {
  background-color: #333333;
  color: white;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  box-sizing: border-box;
}

.team-card:nth-child(7) {
  grid-column: 1 / 3;
  width: calc((100% - 30px) / 2);
  justify-self: center;
}
.coaching-main {
  grid-row: 3 / 4;
  grid-column: 2 / -2;
  background-color: black;
  color: white;
  padding: 40px 20px;
}

.coaching-main h2 {
  text-align: center;
  color: pink;
  margin-bottom: 40px;
  font-family: 'Ariel Narrow Bold';
}

.coach-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.coach-card {
  background-color: #333333;
  color: white;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  position: relative;
}

.coach-card h3 {
  color: pink;
  margin-bottom: 15px;
}

.coach-card img {
  width: 100%;
  max-width: 220px;
  height: 220px;
  object-fit: cover;
  display: block;
  margin: 0 auto 15px auto;
  border-radius: 10px;
}

.coach-card h4 {
  color: white;
  margin-bottom: 12px;
}

.coach-price {
  font-weight: bold;
  color: pink;
  margin-bottom: 20px;
}

.calendar-box {
  background-color: #444444;
  border-radius: 10px;
  padding: 15px;
  width: 180px;
  margin: 0 auto;
  position: relative;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.calendar-label {
  margin: 0;
  color: white;
  font-weight: bold;
}

.calendar-popup {
  display: none;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) scale(1);
  width: 280px;
  background-color: #555555;
  padding: 20px;
  border-radius: 12px;
  z-index: 10;
  text-align: center;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
}

.calendar-box:hover .calendar-popup {
  display: block;
}

.calendar-box:hover {
  transform: scale(1.08);
}

.calendar-popup label {
  display: block;
  margin-bottom: 10px;
  color: white;
  font-weight: bold;
}

.calendar-popup input {
  width: 100%;
  padding: 8px;
  border-radius: 6px;
  border: none;
}

.coach-card:nth-child(7) {
  grid-column: 1 / 3;
  width: calc((100% - 30px) / 2);
  justify-self: center;
}
.donations-main {
  grid-row: 3 / 4;
  grid-column: 2 / -2;
  background-color: black;
  color: white;
  padding: 40px 20px 60px 20px;
}

.donations-main h2 {
  text-align: center;
  color: pink;
  margin-bottom: 30px;
  font-family: 'Ariel Narrow Bold';
}

.donate-buttons {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

.donate-button {
  display: block;
  text-align: center;
  padding: 18px 20px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: bold;
  font-family: 'Ariel Narrow Bold';
  font-size: 1.05rem;
  color: white;
  background-color: #444444;
  border: 3px solid pink;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.donate-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 0 14px rgba(255,255,255,0.2);
}

.gold-button {
  border-color: #d4af37;
}

.silver-button {
  border-color: #c0c0c0;
}

.bronze-button {
  border-color: #b87333;
}

.friends-button {
  border-color: pink;
}

.flyer-section {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.flyer-viewer {
  position: relative;
  width: 100%;
  max-width: 600px;
  background-color: #222222;
  padding: 20px;
  border-radius: 16px;
  text-align: center;
}

.flyer-viewer img {
  width: 100%;
  max-height: 700px;
  object-fit: contain;
  border-radius: 10px;
  background-color: white;
}

.flyer-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: pink;
  color: black;
  border: none;
  font-size: 2rem;
  font-weight: bold;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
}

.left-arrow {
  left: -25px;
}

.right-arrow {
  right: -25px;
}

.sponsor-details {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
  max-width: 1000px;
  margin: 0 auto;
}

.sponsor-detail-card {
  background-color: #333333;
  padding: 24px;
  border-radius: 14px;
  text-align: center;
}

.sponsor-detail-card h3 {
  color: pink;
  margin-top: 0;
  margin-bottom: 10px;
}

.sponsor-detail-card p {
  margin: 0;
  line-height: 1.5;
}
.home-intro {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 30px;
  color: white;
  font-size: 1.15rem;
  line-height: 1.8;
  text-align: center;
}

.home-intro p {
  margin-bottom: 20px;
}
.gallery-main {
  grid-row: 3 / 4;
  grid-column: 2 / -2;
  background-color: black;
  color: white;
  padding: 40px 20px 60px 20px;
}

.gallery-main h2 {
  text-align: center;
  color: pink;
  margin-bottom: 35px;
  font-family: 'Ariel Narrow Bold';
}

.gallery-grid {
  column-count: 3;
  column-gap: 25px;
  max-width: 1100px;
  margin: 0 auto;
}

.gallery-item {
  background-color: #333333;
  display: inline-block;
  width: 100%;
  margin: 0 0 25px;
  border-radius: 12px;
  overflow: hidden;
  break-inside: avoid;
}

.gallery-item img {
  width: 100%;
  display: block;
}

.gallery-item p {
  margin: 0;
  padding: 14px;
  color: white;
  text-align: center;
  line-height: 1.4;
}
@media screen and (max-width: 992px) {
  .gallery-main {
    grid-column: 2 / 3;
  }

.gallery-grid {
    column-count: 2;
  }
}
  #wrapper {
    grid-template-columns: 1fr 768px 1fr;
  }

  header,

  #homehero,
  main {
    grid-column: 2 / 3;
  }

  nav ul {
    flex-flow: row nowrap;
  }

  #homehero {
    grid-row: 3 / 4;
    height: 250px;
  }

  main {
    grid-row: 4 / 5;
  }

  footer {
    grid-row: 5 / 6;
    grid-column: 1 / -1;
  }
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .coach-card:nth-child(7) {
  grid-column: 1 / 3;
  width: calc((100% - 30px) / 2);
  justify-self: center;
}
.donations-main {
    grid-column: 2 / 3;
    padding: 35px 20px 50px 20px;
  }

  .flyer-viewer {
    max-width: 500px;
  }


  .sponsor-options {
    grid-template-columns: 1fr 1fr;
  }


@media screen and (max-width: 768px) {
  body.subpage nav {
  grid-row: 2 / 3;
  grid-column: 1 / 3;
  position: static;
  background-color: #424242;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
}

body.subpage nav ul {
  display: flex;
  flex-flow: column nowrap;
  margin: 0;
  padding: 0;
  width: 100%;
}
body.subpage main,
body.subpage .about-main,
body.subpage .coaching-main,
body.subpage .donations-main,
body.subpage .gallery-main {
  grid-row: 3 / 4;
  grid-column: 1 / 3;
}
body.subpage footer {
  grid-row: 4 / 5;
  grid-column: 1 / 3;
}
body.subpage nav li {
  width: 100%;
  padding: 0;
}

body.subpage nav a {
  display: block;
  width: 100%;
  text-align: center;
  padding: 1rem 0;
}
    .gallery-main {
    grid-column: 1 / 3;
    padding: 30px 35px 45px 35px;
  }
  .team-grid {
    grid-template-columns: 1fr;
  }
  .team-card:nth-child(7) {
    grid-column: auto;
    width: auto;
    max-width: none;
    justify-self: stretch;
  }

  .gallery-grid {
    column-count: 1;
  }
  .home-intro {
    padding: 20px 30px;
    font-size: 1rem;
  }
  #wrapper {
    grid-template-columns: 200px 1fr;
    grid-template-rows: auto auto auto auto;
  }

  header {
    grid-row: 1 / 2;
    grid-column: 1 / 3;
  }

  nav {
    grid-row: 2 / 3;
    grid-column: 1 / 2;
    position: static;
    background-color: #424242;
  }

  nav ul {
    display: flex;
    flex-flow: column nowrap;
    margin: 0;
    padding: 0;
    width: 100%;
  }

  nav li {
    width: 100%;
    padding: 0;
  }

  nav a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 1rem 0;
  }

  #homehero {
    grid-row: 2 / 3;
    grid-column: 2 / 3;
    height: 300px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
  }

  main {
    grid-row: 3 / 4;
    grid-column: 1 / 3;
    text-align: center;
  }

  footer {
  grid-row: 6 / 7;
  grid-column: 1 / -1;
  background-color: gray;
  padding: 10px 20px;
  color: white;
  overflow: auto;
  }

  .footer-left {
    float: left;
    text-align: left;
  }

  .footer-right {
    float: right;
    text-align: right;
  }

  .footer-left p,
  .footer-right p {
    margin: 0;
    line-height: 1.4;
  }

  .footer-right a {
    color: white;
    text-decoration: none;
  }

  .footer-right a:hover {
    text-decoration: underline;
  }
  .about-main {
    grid-column: 1 / 3;
    padding: 30px 15px;
  }

  .team-grid {
    grid-template-columns: 1fr;
  }
  .team-card:nth-child(5),
  .team-card:nth-child(6),
  .team-card:nth-child(7) {
    grid-column: span 1 !important;
  }
  .coaching-main {
    grid-column: 1 / 3;
    padding: 30px 40px;
  }

  .coach-grid {
    grid-template-columns: 1fr;
  }

  .coach-card:nth-child(7) {
    grid-column: auto;
    max-width: none;
    width: 100%;
    justify-self: stretch;
  }
  .donations-main {
    grid-column: 1 / 3;
    padding: 30px 35px 45px 35px;
  }

  .donate-buttons {
    grid-template-columns: 1fr;
  }

  .sponsor-details {
    grid-template-columns: 1fr;
  }

  .flyer-viewer {
    max-width: 100%;
    padding: 15px;
  }

  .flyer-viewer img {
    max-height: 500px;
  }

  .flyer-arrow {
    width: 42px;
    height: 42px;
    font-size: 1.5rem;
  }

  .left-arrow {
    left: -10px;
  }

  .right-arrow {
    right: -10px;
  }


  .sponsor-options {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
