/* Base styles */
body {
  margin: 0;
  font-family: 'Arial Black', sans-serif;
  background:
    linear-gradient(135deg, #660000, #cc0000),
    repeating-linear-gradient(
      45deg,
      rgba(0, 0, 0, 0.05) 0px,
      rgba(0, 0, 0, 0.05) 2px,
      transparent 2px,
      transparent 4px
    );
  background-blend-mode: overlay;
  color: white;
  text-align: center;
}

/* Navigation */
header nav ul {
  display: flex;
  justify-content: center;
  flex-wrap: wrap; /* allows wrapping before media query kicks in */
  background-color: #330000;
  padding: 1rem;
  list-style: none;
  margin: 0;
}

header nav ul li {
  margin: 0 1.5rem;
}

header nav ul li a {
  color: gold;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2rem;
}

/* Hero section */
.hero {
  padding: 2rem 1rem;
}

.hero img {
  width: 100%;       /* fluid scaling */
  max-width: 100%;   /* no hard cap */
  height: auto;
  display: block;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.5rem;
  color: gold;
  margin: 1rem 0 0.5rem;
  text-shadow: 2px 2px #000;
}

.tagline {
  font-size: 1.2rem;
  color: white;
  margin-bottom: 2rem;
}

/* Buttons */
.buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.btn {
  background-color: #330000;
  color: gold;
  padding: 1rem 2rem;
  text-decoration: none;
  font-weight: bold;
  border: 2px solid gold;
  border-radius: 8px;
  transition: transform 0.2s ease;
}

.btn:hover {
  transform: scale(1.1);
  background-color: gold;
  color: #330000;
}

/* News */
.news h2 {
  font-size: 2rem;
  color: gold;
  margin-bottom: 1rem;
}

h1 {
  color: gold;
  font-size: 2.2rem;
  margin-top: 2rem;
  text-shadow: 1px 1px #000;
}

p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  padding: 1rem;
}

.gallery-grid img {
  width: 100%;
  height: auto;
  border: 3px solid gold;
  border-radius: 8px;
}

/* Fixtures table */
.fixtures-table {
  width: 100%;              /* fluid width */
  margin: 0 auto 2rem;
  border-collapse: collapse;
  overflow-x: auto;          /* scrollable if needed */
  display: block;
}

.fixtures-table th,
.fixtures-table td {
  border: 2px solid gold;
  padding: 0.5rem;
  background-color: #330000;
  color: white;
}

/* Documents */
.document-list {
  list-style: none;
  padding: 0;
}

.document-list li {
  margin: 1rem 0;
}

.document-list a {
  color: gold;
  text-decoration: none;
  font-weight: bold;
}

/* Containers */
.container {
  max-width: 100%;
  margin: 0 auto;
  padding: 1rem;
}

/* News list */
.news-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 2rem;
  max-width: 600px;
}

.news-list li {
  background-color: #330000;
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  border-left: 5px solid gold;
  text-align: left;
}

/* Footer */
footer {
  margin-top: 2rem;
  padding: 1rem;
  font-size: 0.9rem;
  color: gold;
}

/* Mobile adjustments */
@media (max-width: 600px) {
  header nav ul {
    flex-direction: column;
    align-items: center;
    padding: 0.5rem;
  }

  header nav ul li {
    margin: 0.5rem 0;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .tagline, p {
    font-size: 1rem;
  }

  .buttons {
    flex-direction: column;
    gap: 0.5rem;
  }

  .btn {
    width: 100%;
    max-width: 250px;
    margin: 0 auto;
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }

  .fixtures-table {
    font-size: 0.9rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .news h2 {
    font-size: 1.5rem;
  }

  .news-list {
    max-width: 100%;
    padding: 0 0.5rem;
  }
}
/* Slideshow */
#slideshow {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2rem auto;
  max-width: 500px;   /* cap slideshow width */
  min-height: 300px;  /* consistent frame height */
}

#slideshow img {
  width: 100%;        /* fill container */
  height: auto;       /* keep aspect ratio */
  max-height: 350px;  /* prevent overly tall images */
  border: 3px solid gold;
  border-radius: 8px;
  object-fit: contain; /* keep image neatly inside frame */
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

#slideshow img.loaded {
  opacity: 1;
}

/* Responsive slideshow adjustments */
@media (max-width: 600px) {
  #slideshow {
    max-width: 90%;
    min-height: 200px;
  }
  #slideshow img {
    max-height: 250px;
  }
}