/* SuttonOn-Hull Cricket Club Project: Amount of hours spent on this project: 95 */

/* Reset & Base Style */

:root {
  color-scheme: light only;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Open Sans', sans-serif;
  color: #333;
}

h1, h2 {
  font-family: 'Bebas Neue', sans-serif;
}

/* Hero Section */
.hero {
  background-image: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('NewSuttonGroundImage.jpeg');
  background-size: cover;
  background-position: center;
  color: #f39428;
  text-align: center;
  padding: 100px 20px;
  border-bottom: 4px solid #f39428;
}

.hero h1 {
  font-size: 52px;
  font-weight: 700;
  margin-bottom: 10px;
}

.hero p {
  font-size: 18px;
  color: white;
  font-weight: bold;
}

.hero-buttons {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.hero-btn {
  background-color: #f39428;
  color: #292262;
  padding: 12px 30px;
  border-radius: 4px;
  text-decoration: none;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.hero-btn:hover {
  background-color: #ffffff;
  color: #292262;
}

.hero-btn-outline {
  background-color: transparent;
  color: #ffffff;
  border: 2px solid #ffffff;
}

.hero-btn-outline:hover {
  background-color: #ffffff;
  color: #292262;
}

/* Navigation */
nav {
  background-color: #282262;
  padding: 15px;
  border-bottom: 4px solid #f39428;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 30px;
}

nav ul li a {
  color: #f39428;
  text-decoration: none;
  font-weight: bold;
  font-size: 20px;
  font-family: 'Bebas Neue', sans-serif;
}

nav ul li a:hover {
  color: white;
}

/* Sections */
section {
  padding: 60px 20px;
  text-align: center;
}

section h2 {
  color: #f39428;
  font-size: 32px;
  margin-bottom: 15px;
}

section p {
  font-weight: bold;
  color: #282262;
  margin-top: 15px;
}

section h3 {
  color: #f39428;
  font-size: 26px;
  
}

section a {
  color: #f39428;
  text-decoration: none;
  font-weight: bold;
}

section a:hover {
  color: #292262;
}

/* Alternate section backgrounds */
section:nth-child(even) {
  background-color: #ffffff;
}

.page-banner {
  background-color: #282262;
  color: #f39428;
  text-align: center;
  padding: 40px 20px;
  border-bottom: 4px solid #f39428;
}

.page-banner h2 {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 40px;
  letter-spacing: 2px;
}

.image-centre {
  display: flex;
  justify-content: centre;
  align-items: centre;
  gap: 20px;
  margin: 20px auto;
  max-width: 1100px;
  padding: 0 20px;
}

.image-centre img {
  width: 45%;
  height: 350px;
  object-fit: cover;
  border-radius: 8px;
}

/* Page Fade */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 2s ease, transform 2s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Welcome Section */
#welcome {
  background-color: #ffffff;
  padding: 60px 20px;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

#welcome h2 {
  color: #292262;
  font-size: 40px;
  margin-bottom: 15px;
}

#welcome p {
  font-size: 18px;
  line-height: 1.8;
  color: #555;
}

/* Home Page Cards */
#cards {
  background-color: grid;
  padding: 60px 20px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
}

.card {
  background-color: #292262;
  border-top: 4px solid #f39428;
  padding: 30px 20px;
  text-decoration: none;
  color: #f39428;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card h3 {
  color: #f39428;
  font-size: 26px;
  margin-bottom: 10px;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 1px;
}

.card p {
  font-size: 18px;
  line-height: 1.6;
  color: #f39428;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 1px;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0,1);
}

/*Contact Us Flexbox */
#contact-intro {
  text-align: center;
  padding: 40px 20px;
  max-width: 800px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.8;
  color: #555;
}

#contact-main {
  padding: 60px 20px;
  background-color: #f0f4ff;
}

.contact-wrapper {
  display: flex;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.contact-form {
  flex: 2;
  background-color: #292262;
  padding: 40px;
  border-radius: 8px;
}

.contact-form h2 {
  color: #f39428;
  font-size: 28px;
  margin-bottom: 20px;
  text-align: center;
  font-family: 'bebas Neue', sans-serif;
}

.contact-form label {
  display: block;
  color: #f39428;
  margin-bottom: 5px;
  font-weight: bold;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 10px;
  margin-bottom: 20px;
  border-radius: 4px;
  border: none;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
}

.contact-form button {
  background-color: #f39428;
  color: #292262;
  border: none;
  padding: 12px 30px;
  font-size: 18px;
  font-weight: bold;
  font-family: 'Bebas Neue', sans-serif;
  border-radius: 4px;
  cursor: pointer;
  width: 100%;
}

.contact-form button:hover {
  background-color: #ffffff;
}

.contact-details {
  flex: 1;
  background-color: #292262;
  padding: 40px;
  border-radius: 8px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.contact-details h3 {
  color: #f39428;
  font-size: 26px;
  margin-bottom: 20px;
  text-align: center;
  font-family: 'Bebas Neue', sans-serif;
}

.contact-details p {
  font-size: 18px;
  line-height: 2;
  text-align: center;
  color: #f39428;
  font-family: 'Bebas Neue', sans-serif;
}

.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.contact-form select,
.contact-form select option {
  font-family: 'Bebas Neue', sans-serif;
}

.map-wrapper {
  max-width: 1100px;
  margin: 40px auto 0 auto;
  text-align: center;
}

.map-wrapper h3 {
  color: #292262;
  font-size: 22px;
  margin-bottom: 20px;
  font-family: 'Bebas Neue', sans-serif;
}

.map-wrapper iframe {
  width: 100%;
  height: 400px;
  border-radius: 8px;
  border: none;
}

.contact-details a:not(.social-icon) {
  color: #f39428;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  text-decoration: none;
  transform: color 0.3 ease;
}

.contact-details a:not(.social-icon):hover {
  color: #ffffff;
}

/*Social Link*/
.social-links {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 15px;
  margin-top: 5px;
}

.social-icon {
  background-color: #f39428;
  color: #292262;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.social-icon:hover {
  background-color: #ffffff;
}

/* News Page */
#news-intro {
  text-align: center;
  padding: 40px 20px;
  max-width: 800px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.8;
  color: #555;
}

/* Featured Story */
#featured-story {
  display: flex;
  max-width: 1100px;
  margin: 60px auto;
  gap: 40px;
  padding: 0 20px;
  align-items: center;
}

.featured-image {
  flex: 1;
  border-radius: 8px;
  overflow: hidden;
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.featured-content {
  flex: 1;
}

.featured-content h2 {
  background-color: #f39428;
  color: #292262;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: bold;
  display: inline-block;
  margin-bottom: 10px;
}

.news-date {
  color: #292262;
  font-size: 14px;
  margin-bottom: 15px;
}

.featured-content p {
  color: #292262;
  line-height: 1.8;
  margin-bottom: 20px;
}

.read-more {
  background-color: #292262;
  color: #f39428;
  padding: 10px 25px;
  border-radius: 10px 25px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.read-more:hover {
  background-color: #f39428;
  color: #292262;
}

/* News Card */
#news-cards {
  background-color: #f0f4ff;
  padding: 60px 20px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  max-width: 1100px;
  margin: 0 auto;
}

.news-card {
  background-color: #292262;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 8px;
}

.news-card p {
  color: #ffffff;
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 15px;
}

.news-card .read-more {
  background-color: #f39428;
  color: #292262;
  padding: 8px 20px;
  font-size: 14px;
}

.news-card .read-more:hover {
  background-color: #ffffff;
}

.news-category {
  background-color: #f39428;
  color: #292262;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: bold;
  display: inline-block;
  margin-bottom: 10px;
}

.news-card h3 {
  font-family: 'Bebas Neue', sans-serif;
  color: #f39428;
}

/* MegaMenu */
nav ul li {
  position: relative;
}

.mega-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #292262;
  padding: 20px;
  gap: 0;
  border-top: 3px solid #f39428;
  border-radius: 12px 12px 12px 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  z-index: 1000;
  min-height: 200px;
  flex-direction: column;
}

.dropdown:hover .mega-menu {
  display: flex;
}

.mega-column:last-child {
  border-bottom: none;
}

.mega-column {
  padding: 15px 0 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.mega-column h4 {
  color: #f39428;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
  font-family: 'Bebas Neue', sans-serif;
}

.mega-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: row;
  gap: 15px;
}

.mega-column ul li a {
  color: #ffffff;
  text-decoration: none;
  font-size: 16px;
  padding: 4px 0;
  display: block;
  transition: color 0.3 ease;
}

.mega-column:nth-child(3) ul {
    justify-content: flex-start;
}

.mega-column:nth-child(3) li,
.mega-column:nth-child(3) li a {
    text-align: left;
}

.mega-column ul li a:hover {
  color: #f39428;
}

/* Footer */
footer {
  background-color: #292262;
  padding: 60px 20px 0 20px;
  margin-top: 0;
}

footer ul {
  list-style: none;
  padding-left: 0;
}

footer ul li {
  list-style: none;
}

footer a {
  color: #ffffff;
  text-decoration: none;
}

footer a:hover {
  color: #f39428;
}

.footer-wrapper {
  display: flex;
  gap: 60px;
  max-width: 1100px;
  margin: 0 auto;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand {
  flex: 1.5;
  display: flex;
  flex-direction: column;
}

.footer-brand img {
  width: 150px;
  margin-bottom: 15px;
}

.footer-brand p {
  color: #ffffff;
  font-size: 14px;
  line-height: 1.0;
  margin-bottom: 20px;
}

.footer-links {
  flex: 1;
}

.footer-links h4 {
  color: #f39428;
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-family: 'Bebas Neue', sans-serif;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  padding-left: 0;
  margin: 0;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  color: #ffffff;
  text-decoration: none;
  font-size: 18px;
  font-weight: normal;
  transition: color 0.3s ease;
  list-style: none;
  font-family: 'Bebas Neue', sans-serif;
}

.footer-links ul li a:hover {
  color: #f39428;
}

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 0;
  text-align: center;
}

.footer-bottom p {
  color: rgba(255,255,255,0.4);
  font-size: 13px;
}



/* Divider on the Contact Page */
.divider {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.2);
  margin: 20px 0;
  width: 100%;
}

.play-cricket-link {
  color: #f39428;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  transition: color 0.3s ease;
}

.play-cricket-link:hover {
  color: #ffffff;
}

/* Affiliations & Sponsors */
#affiliations {
  padding: 40px 20px;
  text-align: center;
  background-color: #ffffff;
  border: none !important;
  outline: none;
}

#sponsors-strip {
  border: none;
  padding: 40px 20px 0 20px;
  text-align: center;
  background-color: #ffffff;
}

#affiliations h2,
#sponsors-strip h2 {
  color: #292262;
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
}

.sponsors-subtitle {
  color: #f39428;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  font-weight: bold;
}

.logo-strip {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto 40px auto;
}

.featured-sponsors {
  gap: 60px;
  margin-bottom: 30px;
}

.sponsor-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.sponsor-item p {
  color: #292262;
  font-size: 13px;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.aff img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  filter: grayscale(20%);
  transition: filter 0.3s ease, transform 0.3s ease;
}

.featured-sponsors img {
  width: 150px;
  height: 150px;
  object-fit: contain;
  filter: grayscale(20%);
  transition: filter 0.3s ease, transform 0.3s ease;
}

.other-sponsors img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  filter: grayscale(20%);
  transition: filter 0.3s ease, transform 0.3s ease;
}

.featured-sponsors img:hover,
.other-sponsors img:hover,
.aff img:hover {
  filter: grayscale(0%);
  transform: scale(1.05);
}

.section-divider {
  border: none;
  border-top: 2px solid #f39428;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
}

.section-divider-small {
  border: none;
  border-top: 2px solid #f39428;
  max-width: 550px;
  width: 100%;
  margin: 0 auto;
}

/*Sponsors Page*/

#sponsor-intro {
  padding: 20px 20px 20px 20px;
  text-align: center;
}

#sponsor-intro h3 {
max-width: 800px;
margin: 0 auto;
font-size: 18px;
line-height: 1.8;
color: #292262;
font-weight: bold;
}

.sponsor-description h2 {
text-align: center;
color: #333;
margin-top: 10px;
margin-bottom: 10px;
font-size: 30px;
}

.sponsor-card {
  margin-bottom: 40px;
  text-align: center;
}

.sponsor-card h3 {
  text-align: center;
  font-size: 28px;
  font-family: 'Bebas Neue', sans-serif;
  line-height: 1.8;
  color: #292262;
  margin-top: 10px;
}

.sponsor-card h4 {
text-align: center;
padding: 10px 5px;
max-width: 800px;
margin: 0 auto;
font-size: 18px;
line-height: 1.8;
color: #f39428;
}

.sponsor-card p {
text-align: right;
padding: 10px 5px;
max-width: 800px;
margin: 0 auto;
font-size: 18px;
line-height: 1.8;
color: #292262;
font-weight: bold;
}

.sponsor-image-left {
  flex: 0 0 25%;
  max-width: 250px;
}

.sponsor-image-left img {
  width: 100%;
  height: auto;
  display: block;
}

.sponsor-text-content {
  flex: 1;
  text-align: left;
}

.sponsor-text-content h3 {
  margin-top: 0;
  margin-bottom: 5px;
}

.sponsor-text-right {
  flex: 1;
  text-align: left;
  margin: 0;
}

.sponsor-body-row {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 85%;
  margin-top: 20px auto 0 auto;
}

.sponsor-body-row a {
  color: #f39428;
  text-decoration: none;
  font-weight: bold;
}

.sponsor-body-row a:hover {
  color: #292262;
}

.sponsor-tab {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  background-color: #f0f4ff;
}

.getinvolved {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px;
  text-align: center;
}

.getinvolved h3 {
  text-align: center;
  color: #292262;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
}

.getinvolved p {
  color: #292262;
  font-size: 18px;
  font-weight: bold;
  max-width: 800px;
  margin: 15px auto;
}

.tab-btn {
  background-color: #ffffff;
  color: #292262;
  border: 2px solid #292262;
  padding: 10px 30px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s ease;
  margin-bottom: 20px;
}

.tab-btn.active {
  background-color: #292262;
  color: #f39428;
}

.sponsor-tab-content .sponsor-body-row {
  margin-left: auto;
  margin-right: auto;
  max-width: 90%;
  flex-wrap: wrap;
  justify-content: center;
}

.sponsor-content-active .sponsor-card p {
  text-align: left;
  margin-right: auto;
  margin-left: auto;
  max-width: 100%;
}

.tab-content.active .sponsor-image-left {
  margin: 0 auto;
  flex: 0 0 auto;
}

.tab-content.active .getinvolved {
  margin-left: auto;
  margin-right: auto;
  max-width: 800px;
}

#tab-player .sponsor-card p {
  text-align: left;
  margin-right: 0;
}

.sponsor-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 30px 20px 0 20px;
  background-color: #ffffff;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Records Page */

#records-intro {
  padding: 20px 20px 20px 20px;
  text-align: center;
}

#records-intro h3 {
max-width: 800px;
margin: 0 auto;
font-size: 18px;
line-height: 1.8;
color: #292262;
font-weight: bold;
}

.record-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 30px 20px 0 20px;
  background-color: #ffffff;
}

.records-table {
  width: 100%;
  max-width: 900px;
  margin: 20px auto 40px auto;
  border-collapse: collapse;
  font-family: 'Bebas Neve' sans-serif;
}

.records-table thead {
  background-color: #292262;
  color: #f39428;
}

.records-table thead th {
  padding: 14px 20px;
  text-align: left;
  font-size: 18px;
  letter-spacing: 1px;
}

.records-table tbody tr {
  border-bottom: 1px solid rgba(41, 34, 98, 0.2);
  transition: background-color 0.2 ease;
}

.records-table tbody tr:nth-child(even) {
  background-color: #f0f4ff;
}

.records-table tbody:hover {
  background-color: #e8ecff;
}

.records-table tbody td {
  padding: 12px 20px;
  font-size: 16px;
  color: #292262;
  font-weight: bold;
}

#tab-club h3,
#tab-player h3,
#tab-hundreds h3,
#tab-bowling h3,
#tab-poty h3,
#tab-winners h3 {
  font-family: 'Bebas Neve' sans-serif;
  font-size: 28px;
  color: #f39428;
  max-width: 900px;
  margin: 30px auto 5px auto;
  text-align: center;
  padding-left: 20px;
}

.hundreds-filters {
  display: flex;
  justify-content: center;
  gap: 15px;
  padding: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.hundreds-filters select {
  padding: 10px 20px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px;
  border: 2px solid #292262;
  border-radius: 4px;
  color: #f39428;
  cursor: pointer;
  background-color: #292262;
}

.stats-row {
  display: flex;
  gap: 30px;
  max-width: 1100px;
  margin: 20px auto;
  padding: 0 20px;
  flex-wrap: wrap;
}

.stats-col {
  flex: 1;
  min-width: 300px;
}

/* Media Page */
.gallery-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 30px 20px 0 20px;
  background-color: #ffffff;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  max-width: 1100px;
  margin: 30px auto;
  padding: 0 20px;
}

.photo-grid img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  filter: grayscale(10%);
}

.photo-grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  filter: grayscale(0%);
}

.year-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 20px 20px 0 20px;
}

.year-btn {
  background-color: #ffffff;
  color: #292262;
  border: 2px solid #292262;
  padding: 8px 25px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.year-btn.active {
  background-color: #292262;
  color: #f39428;
}

.year-content {
  display: none;
}

.year-content.active {
  display: block;
}

/* Lightbox */
#lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  z-index: 9999;
  justify-content: center;
  align-items: center;
}

#lightbox-img {
  max-width: 85%;
  max-height: 85vh;
  border-radius: 8px;
  box-shadow: 0 0 40px rgba(0,0,0,0.5);
}

#lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #ffffff;
  font-size: 40px;
  cursor: pointer;
  transition: color 0.3s ease;
}

#lightbox-close:hover {
  color: #f39428;
}

#lightbox-prev,
#lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #ffffff;
  font-size: 40px;
  cursor: pointer;
  padding: 20px;
  transition: color 0.3s ease;
}

#lightbox-prev {
  left: 20px;
}

#lightbox-next {
  right: 20px;
}

#lightbox-prev:hover,
#lightbox-next:hover {
  color: #f39428;
}

#lightbox-caption {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: #ffffff;
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 1px;
  background: rgba(0, 0, 9, 0);
  padding: 8px 20px;
  border-radius: 4px;
}

.image-centre img {
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-centre img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* History Popup */
#history-popup {
  position: fixed;
  bottom: 30px;
  left: 30px;
  background-color: #292262;
  color: #ffffff;
  padding: 20px 25px;
  border-radius: 12px;
  border-left: 4px solid #f39428;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  z-index: 9000;
  max-width: 300px;
  animation: slideUp 0.5s ease;
}

#history-popup p {
  color: #ffffff;
  font-size: 15px;
  margin-bottom: 15px;
  font-weight: normal;
  text-align: left;
}

.popup-buttons {
  display: flex;
  gap: 10px;
}

.popup-buttons button {
  flex: 1;
  padding: 8px 15px;
  border: none;
  border-radius: 4px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.popup-buttons button:first-child {
  background-color: #f39428;
  color: #292262;
}

.popup-buttons button:first-child:hover {
  background-color: #ffffff;
}

.popup-buttons button:last-child {
  background-color: transparent;
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.3);
}

.popup-buttons button:last-child:hover {
  background-color: rgba(255,255,255,0.1);
}

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

/* History Sidebar */
#history-sidebar {
  position: fixed;
  top: 0;
  left: -350px;
  width: 320px;
  height: 100%;
  background-color: #292262;
  border-right: 4px solid #f39428;
  padding: 40px 25px;
  overflow-y: auto;
  z-index: 9000;
  transition: left 0.4s ease;
  box-shadow: 4px 0 20px rgba(0,0,0,0.3);
}

#history-sidebar.open {
  left: 0;
}

#sidebar-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: #f39428;
  font-size: 28px;
  cursor: pointer;
}

#history-sidebar h3 {
  color: #f39428;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 24px;
  margin-bottom: 25px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.sidebar-section {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-section:last-child {
  border-bottom: none;
}

.sidebar-section a {
  color: #f39428;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  text-decoration: none;
  display: block;
  margin-bottom: 8px;
  transition: color 0.3s ease;
}

.sidebar-section a:hover {
  color: #ffffff;
}

.sidebar-section p {
  color: rgba(255,255,255,0.7);
  font-size: 13px;
  line-height: 1.6;
  font-weight: normal;
  text-align: left;
}

#history-popup {
  display: none;
}

/* Form Message */
#form-message {
  margin-top: 15px;
  padding: 12px 20px;
  border-radius: 4px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px;
  display: none;
  text-align: center;
}

#form-message.success {
  background-color: #28a745;
  color: #ffffff;
  display: block;
}

#form-message.error {
  background-color: #dc3545;
  color: #ffffff;
  display: block;
}

/* Stats Bar */
.stats-bar {
  background-color: #292262;
  padding: 40px 20px;
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
  border-bottom: 4px solid #f39428;
}

.stat-item {
  text-align: center;
}

.stat-item h3 {
  color: #f39428;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 48px;
  line-height: 1;
  margin-bottom: 5px;
}

.stat-item p {
  color: #ffffff;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: normal;
}

/* Latest News Preview */
#latest-news {
  padding: 60px 20px;
  background-color: #f0f4ff;
  text-align: center;
}

#latest-news h2 {
  color: #292262;
  font-size: 36px;
  margin-bottom: 30px;
}

.news-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
  max-width: 1100px;
  margin: 0 auto 30px auto;
}

.news-preview-card {
  background-color: #292262;
  border-radius: 8px;
  padding: 25px;
  border-top: 4px solid #f39428;
  text-align: left;
}

.news-preview-card h3 {
  color: #f39428;
  font-size: 20px;
  margin-bottom: 8px;
  font-family: 'Bebas Neue', sans-serif;
}

.news-preview-card p {
  color: #ffffff;
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 15px;
  font-weight: normal;
}

.news-preview-footer {
  margin-top: 20px;
}

.news-preview-card a {
  background-color: #f39428;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px;
  color: #292262;
  text-decoration: none;
  letter-spacing: 1px;
  transition: color 0.3 ease;
}

.news-preview-card a:hover {
  background-color: #ffffff;
  color: #f39428;
}

#welcome {
  padding: 60px 20px;
  background-color: #ffffff;
}

.welcome-wrapper {
  display: flex;
  gap: 60px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: center;
}

.welcome-text {
  flex: 1;
  text-align: left;
}

.welcome-text h2 {
  color: #292262;
  font-size: 40px;
  margin-bottom: 20px;
}

.welcome-text p {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 15px;
  font-weight: normal;
}

.welcome-text .hero-btn {
  margin-top: 10px;
  display: inline-block;
}

.welcome-image {
  flex: 1;
}

.welcome-image img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

/* Fixtures & Results Widgets */
#fixtures-results {
  background-color: #292262;
  padding: 60px 20px;
}

.fixtures-results-wrapper {
  display: flex;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
}

.widget-box {
  flex: 1;
  background-color: rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 25px;
  border: 4px solid #f39428;
}

.widget-box h2 {
  color: #f39428;
  font-size: 28px;
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.widget-loading {
  color: rgba(255,255,255.0.5);
  font-size: 14px;
  text-align: center;
  padding: 20px 0;
  font-weight: normal;
}

.widget-item {
  padding: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.widget-item:last-child {
  border-bottom: none;
}

.widget-item .widget-date {
  color: #f39428;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 14px;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.widget-item .widget-team {
  color: #ffffff;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 14px;
  letter-spacing: 1px;
  margin-bottom: 4px;
}

.widget-item .widget-teams {
  color: #ffffff;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  margin-bottom: 4px;
}

.widget-item .widget-comp {
  color: rgba(255,255,255,0.5);
  font-size: 12px;
  font-weight: normak;
}

.widget-item .widget-result {
  display: inline-block;
  margin-top: 6px;
  padding: 3px 10px;
  border-radius: 20px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 13px;
}

.widget-result.win {
  background-color: #28a745;
  color: #ffffff;
}

.widget-result.loss {
  background-color: #dc3545;
  color: #ffffff;
}

.widget-result.draw {
  background-color: #f39428;
  color: #292262;
}

.widget-result.abandoned {
  background-color: #6c757d;
  color: #ffffff;
}

.widget-footer {
  text-align: center;
  margin-top: 20px;
}

.widget-footer a {
  color: #f39428;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px;
  text-decoration: none;
  letter-spacing: 1px;
  transition: color 0.3 ease;
}

.widget-footer a:hover {
  color: #ffffff;
}

.dismissal-cell {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 14px;
  color: #292262;
}

.dismissal-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 20px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 12px;
  letter-spacing: 1px;
  margin-right: 3px;
}

.dismissal-badge.bowled {
  background-color: #292262;
  color: #ffffff;
}

.dismissal-badge.caught {
  background-color: #f39428;
  color: #ffffff;
}

.dismissal-badge.lbw {
  background-color: #292262;
  color: #f39428;
}

.dismissal-badge.stumped {
  background-color: #f39428;
  color: #292262;
}

.dismissal-badge.runout {
  background-color: #c0392b;
  color: #ffffff;
}

.dismissal-badge.not-out {
  background-color: #27ae60;
  color: #ffffff;
}

.dismissal-badge.hitwicket {
  background-color: #292262;
  color: #ffffff;
}

.dismissal-cell .fielder-name {
  min-width: 150px;
}

/* League Table Page */
#league-table-section {
  padding: 40px 20px;
  background-color: #ffffff;
}

.league-table-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  overflow-x: auto;
}

#live-table {
  width: 100%;
  margin: 0 auto;
  border-collapse: separate;
  border-spacing: 0 6px;
  background-color: transparent;
}

#live-table tbody {
  background-color: transparent;
}

.league-table-wrapper {
  background-color: transparent;
}

/* Freeze Team columns while scrolling the league table horizontally */

#live-table th:nth-child(2),
#live-table td:nth-child(2) {
  position: sticky;
  left: 0;
  z-index: 2;
  background-color: #292262;
}

#live-table thead th:nth-child(2) {
  background-color: #292262;
  z-index: 3;
}

#live-table tbody tr.promotion-row td:nth-child(2) { background-color: #1a7a3a; }
#live-table tbody tr.champions-row td:nth-child(2) { background-color: #b8860b; }
#live-table tbody tr.relegation-row td:nth-child(2) { background-color: #8b1a1a; }
#live-table tbody tr.sutton-row td:nth-child(2) { background-color: #3d3580; }
#live-table tbody tr.sutton-row.promotion-row td:nth-child(2) { background-color: #1a7a3a; }
#live-table tbody tr.sutton-row.champions-row td:nth-child(2) { background-color: #b8860b; }
#live-table tbody tr.sutton-row.relegation-row td:nth-child(2) { background-color: #8b1a1a; }

.table-header {
  max-width: 1100px;
  margin: 20px auto 10px auto;
  padding: 0 20px;
}

.table-header h3 {
  color: #292262;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  border-left: 4px solid #f39428;
  padding-left: 15px;
}

.table-scroll-top {
  overflow-x: auto;
  overflow-y: hidden;
  height: 14px;
  max-width: 1100px;
  margin: 10px auto 0 auto;
}

.table-scroll-top-inner {
  height: 1px;
}

.table-scroll-top::-webkit-scrollbar {
  height: 10px;
}

.table-scroll-top::-webkit-scrollbar-track {
  background: #f0f4ff;
  border-radius: 10px;
}

.table-scroll-top::-webkit-scrollbar-thumb {
  background: #292262;
  border-radius: 10px;
}

/* Base table row — navy background */
#live-table tbody tr {
  background-color: #292262;
}

#live-table tbody td {
  color: #ffffff;
}

/* Table Header Sticky */
#live-table thead tr th {
  position: sticky;
  top: 0;
  z-index: 4;
  background-color: #292262;
}

.league-table-wrapper {
  overflow-x: auto;
  overflow-y: visible;
  max-height: none;
}

/* Pill shape */
#live-table tbody td:first-child {
  border-radius: 30px 0 0 30px;
  padding-left: 16px;
}

#live-table tbody td:last-child {
  border-radius: 0 30px 30px 0;
  padding-right: 16px;
}

/* Zone rows */
#live-table tbody tr.promotion-row td {
  background-color: #1a7a3a;
  color: #ffffff;
}

#live-table tbody tr.champions-row td {
  background-color: #b8860b;
  color: #ffffff;
}

#live-table tbody tr.relegation-row td {
  background-color: #8b1a1a;
  color: #ffffff;
}

/* Sutton mid-table */
#live-table tbody tr.sutton-row td {
  background-color: #3d3580;
  color: #ffffff;
}

/* Sutton gold border wrapping full pill */
#live-table tbody tr.sutton-row td:first-child {
  border-left: 5px solid #f39428;
  border-top: 5px solid #f39428;
  border-bottom: 5px solid #f39428;
  border-radius: 30px 0 0 30px;
}

#live-table tbody tr.sutton-row td:last-child {
  border-right: 5px solid #f39428;
  border-top: 5px solid #f39428;
  border-bottom: 5px solid #f39428;
  border-radius: 0 30px 30px 0;
}

#live-table tbody tr.sutton-row td:not(:first-child):not(:last-child) {
  border-top: 5px solid #f39428;
  border-bottom: 5px solid #f39428;
}

/* Sutton in zones */
#live-table tbody tr.sutton-row.promotion-row td {
  background-color: #1a7a3a;
}

#live-table tbody tr.sutton-row.champions-row td {
  background-color: #b8860b;
}

#live-table tbody tr.sutton-row.relegation-row td {
  background-color: #8b1a1a;
}

.table-key {
  display: flex;
  gap: 20px;
  max-width: 1100px;
  margin: 10px auto 30px auto;
  padding: 0 20px;
  flex-wrap: wrap;
}

.key-item {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 20px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 14px;
  letter-spacing: 1px;
  margin-right: 8px;
  color: #ffffff;
}

.promotion-key { background-color: #1a7a3a; }
.champions-key { background-color: #b8860b; }
.relegation-key { background-color: #8b1a1a; }
.sutton-key { background-color: #3d3580; border: 4px solid #f39428; }


/* Fixture & Results Pages */
.fixture-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 30px 20px 0 20px;
  background-color: #ffffff;
}

.fixture-page-wrapper {
  max-width: 1000px;
  margin: 30px auto;
  padding: 0 20px;
}

.fixture-row {
  padding: 20px;
  border-bottom: 1px solid rgba(41,34,98,0.1);
  border-left: 4px solid #f39428;
  margin-bottom: 15px;
  border-radius: 0 8px 8px 0;
  background-color: #f9f9f9;
}

.fixture-row-date {
  color: #f39428;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.fixture-row-teams {
  color: #292262;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 22px;
  margin-bottom: 4px;
}

.fixture-row-comp {
  color: #888;
  font-size: 13px;
  margin-bottom: 4px;
}

.fixture-row-ground {
  color: #888;
  font-size: 13px;
}

.fixture-header {
  background-color: #292262 !important;
  color: #f39428 !important;
}

.fixture-time {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px;
}

.fixture-header-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.fixture-badge {
  padding: 3px 12px;
  border-radius: 20px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 12px;
  display: inline-block;
}

.fixture-badge.home {
  background-color: #f39428;
  color: #292262;
}

.fixture-badge.away {
  background-color: transparent;
  color: #f39428;
  border: 2px solid #f39428;
}

/* Result Cards */
.result-card {
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.result-card-header {
  padding: 12px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px;
  letter-spacing: 1px;
}

.result-card-header.win {
  background-color: #28a745;
  color: #ffffff;
}

.result-card-header.loss {
  background-color: #dc3545;
  color: #ffffff;
}

.result-card-header.draw {
  background-color: #f39428;
  color: #292262;
}

.result-card-header.abandoned {
  background-color: #6c757d;
  color: #ffffff;
}

.result-card-body {
  display: flex;
  align-items: center;
  padding: 20px;
  background-color: #292262;
  gap: 20px;
}

.result-card-body {
  position: relative;
}

.corner-badge {
  position: absolute;
  top: 12px;
  left: 20px;
}

.result-team {
  flex: 1;
  text-align: center;
}

.result-team-name {
  color: #ffffff;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 18px;
  margin-bottom: 8px;
  font-weight: normal;
}

.result-score {
  color: #f39428;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 28px;
  font-weight: normal;
}

.result-vs {
  color: rgba(255,255,255,0.4);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
}

.result-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background-color: #1e1a4a;
}

.result-date {
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  font-weight: normal;
}

.scorecard-btn {
  background-color: #f39428;
  color: #292262;
  border: none;
  padding: 6px 15px;
  border-radius: 4px;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.scorecard-btn:hover {
  background-color: #ffffff;
}

/* Scorecard */
.scorecard-container {
  background-color: #f9f9f9;
  padding: 20px;
}

.scorecard-innings {
  margin-bottom: 30px;
}

.scorecard-innings h4 {
  color: #292262;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 20px;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid #f39428;
}

.scorecard-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
  font-size: 14px;
}

.scorecard-table thead {
  background-color: #292262;
  color: #f39428;
}

.scorecard-table thead th {
  padding: 8px 12px;
  text-align: center;
}

.scorecard-table tbody td {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(0,0,0,0.05);
  color: #333;
  text-align: center;
}

.scorecard-table tbody td:first-child {
  text-align: left;
}

.scorecard-table tbody tr:nth-child(even) {
  background-color: #f0f4ff;
}

.scorecard-toss {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #292262;
  margin-bottom: 16px;
  font-style: italic;
}

.extras-row td {
  color: #666;
  font-style: italic;
}

.total-row td {
  background-color: #292262 !important;
  color: #f39428 !important;
}

/* News Article */

.news-body {
  max-width: 800px;
  margin: 40px auto;
  padding: 0 20px;
}

.news-body p {
  color: #333;
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
  font-weight: normal;
}

.news-body a {
  color: #f39428;
  text-decoration: none;
  font-weight: bold;
} 

.news-body a:hover {
  color: #292262;
}

.news-article-date {
  color: #f39428;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px;
  letter-spacing: 1px;
  margin-bottom: 20px;
  font-weight: normal;
}

.qr-code {
  text-align: center;
  margin: 30px auto;
}

.qr-code img {
  width: 200px;
  height: 200px;
  object-fit: contain;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  padding: 10px;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.hamburger span {
  display: block;
  width: 35px;
  height: 4px;
  background-color: #f39428;
  border-radius: 3px;
  transition: all 0.9s ease;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

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

.hamburger.open span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

@media (max-width: 768px) {
  nav {
    position: relative;
    padding: 15px 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
  }

  .hamburger {
    display: flex;
    position: relative;
    right: 0;
    top: 0;
    transform: none;
    order: -1;
  }

nav ul {
    display: none;
    flex-direction: column;
    gap: 0;
    width: 100%;
    margin-top: 15px;
    order: 1;
  }

  nav ul.open {
    display: flex;
  }

  nav ul li {
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  nav ul li a {
    display: block;
    padding: 12px 0;
  }

  /* Mega menu on mobile */
  .mega-menu {
    position: static !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    border-top: none !important;
    background-color: rgba(0,0,0,0.2) !important;
    min-height: unset !important;
    padding: 0 15px !important;
  }

  .dropdown:hover .mega-menu {
    display: none;
  }

  .dropdown.open .mega-menu {
    display: flex;
  }

  .mega-column {
    padding: 10px 0 !important;
  }

  .mega-column ul {
    flex-direction: column !important;
    gap: 5px !important;
  }
}

@media (max-width: 768px) {
  /* Tab buttons */
  .record-tabs,
  .fixture-tabs,
  .gallery-tabs,
  .sponsor-tabs,
  .year-tabs {
    flex-wrap: wrap;
    gap: 8px;
    padding: 15px;
  }

  .tab-btn,
  .year-btn {
    flex: 1 1 calc(50% - 8px);
    font-size: 14px;
    padding: 8px 10px;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .footer-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 30px;
    text-align: center;
  }

  .footer-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-links {
    width: 100%;
    text-align: center;
  }

  .footer-links ul {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 768px) {
  .welcome-wrapper {
    flex-direction: column;
    gap: 30px;
  }

  .welcome-text {
    text-align: center;
  }

  .welcome-image {
    width: 100%;
  }

  .welcome-image img {
    height: 250px;
  }
}

@media (max-width: 768px) {
  .news-preview-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .fixtures-results-wrapper {
    flex-direction: column;
  }
}

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

@media (max-width: 768px) {
  .mobile-cards {
    max-width: 100%;
    padding: 0 15px;
  }

  .mobile-card {
    background-color: #292262;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    border-top: 3px solid #f39428;
  }

  .mobile-card-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }

  .mobile-card-row:last-child {
    border-bottom: none;
  }

  .mobile-card-label {
    color: #f39428;
    font-family: 'Bebas Neue', sans-serif;
    font-size: 14px;
    letter-spacing: 1px;
  }

  .mobile-card-value {
    color: #ffffff;
    font-size: 14px;
    text-align: right;
  }
}

@media (max-width: 768px) {
  #featured-story {
    flex-direction: column;
  }

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

@media (max-width: 768px) {
  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }
}

@media (max-width: 768px) {
  .featured-sponsors {
    flex-direction: column;
    align-items: center;
    gap: 30px;
  }

  .logo-strip {
    gap: 20px;
  }

  .sponsor-body-row {
    flex-direction: column;
    align-items: center;
  }

  .sponsor-image-left {
    max-width: 200px;
    margin: 0 auto;
  }

  .sponsor-text-content,
  .sponsor-text-right {
    text-align: center;
  }
}

@media (max-width: 768px) {
  .contact-wrapper {
    flex-direction: column;
  }

  .contact-form {
    padding: 25px;
  }

  .contact-details {
    padding: 25px;
  }

  .map-wrapper iframe {
    height: 300px;
  }
}

@media (max-width: 768px) {
  .scorecard-container {
    padding: 10px;
    overflow-x: auto;
  }

  .scorecard-table {
    font-size: 12px;
    min-width: 500px;
  }

  .scorecard-innings h4 {
    font-size: 16px;
  }
}

.mobile-only {
  display: none;
}

@media (max-width: 768px) {
  .desktop-only {
    display: none;
  }

  .mobile-only {
    display: inline;
  }
}

@media (max-width: 768px) {
  .league-table-wrapper {
    overflow-x: auto;
  }

  #live-table {
    min-width: 600px;
  }
}

@media (max-width: 768px) {
  #live-table thead th:nth-child(6),
  #live-table thead th:nth-child(8),
  #live-table thead th:nth-child(9),
  #live-table thead th:nth-child(10),
  #live-table thead th:nth-child(11),
  #live-table thead th:nth-child(13),
  #live-table thead th:nth-child(14),
  #live-table tbody td:nth-child(6),
  #live-table tbody td:nth-child(8),
  #live-table tbody td:nth-child(9),
  #live-table tbody td:nth-child(10),
  #live-table tbody td:nth-child(11),
  #live-table tbody td:nth-child(13),
  #live-table tbody td:nth-child(14) {
    display: none;
  }
}