/* =========================
   Base / Reset
   ========================= */

body {
  margin: 0;
  font-family: Inter, sans-serif;
  background: #f7f7f7;
  color: #222;
  padding-top: 50px; /* offset fixed header */
}

a {
  color: #000;
  text-decoration: none;
}

/* =========================
   Header
   ========================= */

header {
  background: #f7f7f7;
  color: #222;
  padding: 10px;
  text-align: center;
}

header h1 {
  margin: 0;
  font-size: 2rem;
  letter-spacing: 1px;
}

header p {
  margin-top: 10px;
  font-size: 1.2rem;
  opacity: 0.9;
}

/* =========================
   Layout
   ========================= */

.section {
  max-width: 900px;
  margin: 10px auto;
  padding: 0 10px;
}

.card {
  background: #fff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  margin-bottom: 25px;
}

/* =========================
   Headings
   ========================= */

h2 {
  margin-top: 0;
  color: #0a1a3c;
}

h3 {
  margin-top: 0;
  font-size: 0.8rem;
  color: #222;
  padding-left: 20px;
}

/* =========================
   Buttons
   ========================= */

a.button {
  display: inline-block;
  background: #10264d;
  color: #fff;
  padding: 12px;
  border-radius: 6px;
  font-weight: bold;
}

a.buttoncoffee {
  display: inline-block;
  background: #FFDD00;
  color: #000;
  padding: 12px;
  border-radius: 6px;
  font-weight: bold;
}

/* =========================
   League Table
   ========================= */

.league-wrapper {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
  background: #f7f7f7;
  border-radius: 12px;
  color: #222;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.league-title {
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.8rem;
  color: #0a1a3c;
}

.league-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 10px;
  overflow: hidden;
}

.league-table thead {
  background: #10264d;
}

.league-table th {
  padding: 12px;
  text-align: left;
  font-weight: 600;
  color: #f5d76e;
  font-size: 0.95rem;
}

.league-table td {
  padding: 12px;
  font-size: 0.95rem;
}

.league-table tr:nth-child(even) {
  background: rgba(0,0,0,0.03);
}



.league-table a {
  color: #0a3cff;        /* Farsley blue link colour */
  text-decoration: underline;
  font-weight: 600;
}

.league-table a:hover {
  color: #062a9e;        /* darker blue on hover */
  text-decoration: none;
}


/* Hide SP and MP columns in the league table */
.league-wrapper .league-table th:nth-child(5),
.league-wrapper .league-table td:nth-child(5),
.league-wrapper .league-table th:nth-child(6),
.league-wrapper .league-table td:nth-child(6),
.league-wrapper .league-table th:nth-child(8),
.league-wrapper .league-table td:nth-child(8),
.league-wrapper .league-table th:nth-child(9),
.league-wrapper .league-table td:nth-child(9) {
  display: none;
}

/* Hide Time and Status columns in the fixtures table */
.fixtures-wrapper .league-table th:nth-child(5),
.fixtures-wrapper .league-table td:nth-child(5),
.fixtures-wrapper .league-table th:nth-child(6),
.fixtures-wrapper .league-table td:nth-child(6) {
  display: none;
}


/* =========================
   Fixtures
   ========================= */

.fixtures-wrapper {
  max-width: 900px;
  margin: 40px auto;
  padding: 20px;
  background: #fff;
  border-radius: 12px;
  color: #222;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.fixtures-title {
  text-align: center;
  margin-bottom: 20px;
  font-size: 1.8rem;
  color: #0a1a3c;
}

/* Card Layout */

#fixtures-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.fixture-card {
  background: #fff;
  border-radius: 10px;
  padding: 15px 18px;
  color: #000;
  box-shadow: 0 3px 10px rgba(0,0,0,0.25);
}

.fixture-date {
  font-size: 0.9rem;
  color: #0a1a3c;
  margin-bottom: 6px;
}

.fixture-match {
  font-size: 1.05rem;
  font-weight: 600;
}

.fixture-result {
  font-weight: bold;
  color: #0a1a3c;
  margin-left: 6px;
}

/* =========================
   Quick Links
   ========================= */

.quicklinks {
  background-color: #0b1b3b;
  color: #f5f5f5;
  padding: 20px 15px;
  margin-top: 30px;
}

.quicklinks h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
  color: #f9d36b;
}

.quicklinks ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.quicklinks li {
  margin: 6px 0;
  padding-left: 20px;
}

.quicklinks a {
  color: #f5f5f5;
  font-size: 0.95rem;
}

.quicklinks a:hover {
  color: #f9d36b;
  text-decoration: underline;
}

/* =========================
   Footer
   ========================= */

footer {
  text-align: center;
  padding: 30px;
  font-size: 0.9rem;
  color: #555;
}

/* =========================
   Utility
   ========================= */

.loading {
  text-align: center;
  padding: 20px;
  color: #999;
}

/* =========================
   Mobile
   ========================= */

@media (max-width: 600px) {
  h2 {
    font-size: 1.4rem;
  }
}