.statistics {
  display: flex;
  gap: 20px;
  margin: 20px;
}

.stat-item {
  display: flex;
  align-items: center;
  flex: 1;
  background-color: #2F333E;
  color: #D9AC75;
  text-align: center;
  padding: 20px 25px;
  border-radius: 10px;
  box-shadow: 8px 8px 6px rgba(0, 0, 0, 0.4);
}

.stat-item h3 {
  font-size: 35px;
  margin: 0;
}

.stat-item p {
  font-size: 26px;
  margin: 5px 0 0;
}

.info {
  margin-left: 60px;
}

.stat-item i {
  font-size: 80px;
  margin-left: 15px;
}

.match_score {
  display: flex;
}

.hero {
  display: flex;
/*  justify-content: space-around;*/
  margin-bottom: 25px;
}



/* ประกาศสำคัญ */
.information {
  background-color: #514F4F;
  width: 600px;
  height: 200px;
  padding: 20px;
  margin: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.information h3 {
  color: #fff;
  font-size: 26px;
  margin-bottom: 10px;
  margin-top: -10px;
  margin-right: 325px;
}

.posts {
  overflow-y: auto;
  height: 180px;
}

.posts::-webkit-scrollbar {
  width: 8px;
}

.posts::-webkit-scrollbar-thumb {
  background: rgb(190, 190, 190); 
  border-radius: 10px;
}

.posts::-webkit-scrollbar-thumb:hover {
  background: rgb(168, 168, 168); 
  border-radius: 10px;
}

.post {
  background-color: #fff;
  width: 96%;
  height: auto;
  border-radius: 5px;
  padding: 10px;
  margin-bottom: 10px;
}

/* คู่แข่งขันสไลด์ */
.match-list {
  background-color: #514F4F;
  width: 600px;
  height: 470px;
  padding: 20px;
  margin: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.match-list h3 {
  font-size: 28px;
  margin-bottom: 10px;
  margin-top: -10px;
  color: #fff;
}

/* Slider container */
.slider {
  position: left;
  width: 600px;
  height: 400px;
  overflow: hidden;
  margin: auto;
  border: 2px solid #ccc;
  border-radius: 10px;
}

/* Slides */
.slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
  width: 100%;
}

.slides img {
  width: 600px;
  height: 400px;
  border-radius: 10px;
}

/* Navigation buttons */
/* .prev,
.next {
  position: relative;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 50%;
} */

/* Dots */
.dots {
  text-align: center;
  margin-top: 10px;
}

.dot {
  display: inline-block;
  height: 10px;
  width: 10px;
  margin: 0 5px;
  background-color: #bbb;
  border-radius: 50%;
  cursor: pointer;
}

.active {
  background-color: #A40001;
}

.hero-right {
  width: 100%;
}

/* สรุปคะแนน */
.container {
  max-width: 100%;
  width: auto;
  height: 730px;
  background: #514F4F;
  padding: 20px;
  margin: 20px 20px 0 0;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.container h1 {
  text-align: center;
  color: #fff;
  margin-top: 0px;
}

table {
            width: 100%;
            border-collapse: collapse;
            background-color: #ffffff;
            font-family: Arial, sans-serif;
        }
        th, td {
            border: 1px solid #ddd;
            text-align: center;
            padding: 8px;
        }
        th {
/*            background-color: #4CAF50;*/
            color: black;
        }
        tr:nth-child(even) {
            background-color: #f2f2f2;
        }
        /*tr:hover {
            background-color: #ddd;
        }*/
/*.score-table {
 background-color: rgb(78, 156, 1); 
  width: 820px;
  height: 640px;
  padding: 10px;
  padding-top: 0;
  margin: 10px;
  overflow-y: auto;
}

.score-table::-webkit-scrollbar {
  width: 8px;
}

.score-table::-webkit-scrollbar-thumb {
  background: rgb(190, 190, 190); 
  border-radius: 10px;
}

.score-table::-webkit-scrollbar-thumb:hover {
  background: rgb(168, 168, 168); 
  border-radius: 10px;
}

.results {
  background-color: rgba(255, 255, 255, 0.897);
  width: 780px;
  height: auto;
  padding: 10px;
  margin-left: 10px;
  margin-top: 0;
  margin-bottom: 15px;
  border-radius: 15px 50px;
}*/

/* .sportname {
  font-size: 21px;
  text-align: left;
  background-color: palevioletred;
  display: inline;
  align-items: center;
  padding: 25px;
  margin-top: 0;
  margin-left: -10px;
  border-radius: 15px 0px 50px 0px;
} */

/* sponser */
.sponsor-container {
  text-align: center;
}

.sponsor-container h1 {
  font-size: 24px;
  color: #fff;
  margin-bottom: 20px;
  margin-left: 20px;
  text-align: left;
}

.sponsor-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.sponsor-item {
  width: 150px;
  height: 150px;
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 10px;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.sponsor-item img {
  max-width: 100%;
  max-height: 100%;
}

/* stye responsive */

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

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

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

  header h1 {
    font-size: 1.5rem;
  }
} */

/* Responsive design for small screens (max-width: 576px) */
@media (max-width: 576px) {
.statistics {
  display: grid;
   margin-left: 30px;
}

.stat-item {
  width: 80%;
}

.information {
  width: 75%;
  margin-left: 10px;
}

.hero {
  display: grid;
}

.head_info {
/*    background-color: #fff;*/
  width: auto;
}

.head_info h3 {
  width: 250px;
  margin: 0;
  margin-bottom: 10px;
}

.match-list {
/*  display: none;*/
width: 75%;
height: auto;
margin-left: 10px;
}

.slider {
  border: 0;
  width: 350px;
  height: 310px;
}

.slides {
 width: 350px;
  height: 310px;
/*  border-radius: 10px;*/
}

.slides img {
    width: 350px;
  height: 310px;
/*  border-radius: 10px;*/
  object-fit: contain; /* ทำให้ภาพถูกย่อให้พอดีกับขนาดโดยไม่ตัด */
}

.container {
  width: 75%;
  margin-left: 10px;
}

.container h1, .match-list h3 {
  font-size: 20px;
}

}